config.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #ifndef _CONFIG_H_
00015 #define _CONFIG_H_
00016 
00019 
00020 //_____ I N C L U D E S ____________________________________________________
00021 
00022 
00023 #ifdef AVRGCC
00024    #define __AVR_AT90USBxxx__
00025 #endif
00026 
00027 #include "lib_mcu\compiler.h" 
00028 
00029 
00030 #ifdef AVRGCC
00031    #include <avr/io.h>
00032 #else
00033    #include "lib_mcu\mcu.h" 
00034 #endif
00035 #include "conf/conf_scheduler.h" 
00036 
00037 #define  STK525   0
00038 #define  USBKEY   1
00039 #define  SPIDER   2
00040 
00042 #define USE_ADC
00043 
00044 #define USE_TIMER16   BOTH_TIMER16
00045 
00048 #define TARGET_BOARD  STK525
00049 
00050 #if (TARGET_BOARD==USBKEY)
00053    //#define USBKEY_HAS_321_DF
00054    #include "lib_board\usb_key\usb_key.h"
00055 #elif (TARGET_BOARD==STK525)
00056    #include "lib_board\stk_525\stk_525.h"
00057 #else
00058    #error TARGET_BOARD must be defined somewhere
00059 #endif
00060 
00062 #define FOSC 8000
00063 
00064 // -------- END Generic Configuration -------------------------------------
00065 
00066 #define HOST_SYNC_MODE  ENABLE
00067 
00068 // UART Sample configuration, if we have one ... __________________________
00069 #define BAUDRATE        57600
00070 #define USE_UART2
00071 #define UART_U2
00072 
00073 #define uart_putchar putchar
00074 #define r_uart_ptchar int
00075 #define p_uart_ptchar int
00076 
00077 
00078 // ADC Sample configuration, if we have one ... ___________________________
00079 
00080 
00082 #define ADC_PRESCALER 32
00084 #define ADC_RIGHT_ADJUST_RESULT 1
00086 #define ADC_INTERNAL_VREF  2
00087 
00088 #define SBC_VENDOR_ID         {'A','T','M','E','L',' ',' ',' '}      // 8 Bytes only
00089 #define SBC_PRODUCT_ID        {'A','T','9','0','U','S','B','1','2','8',' ','M',' ','S',' ',' '}  // 16 Bytes only
00090 #define SBC_REVISION_ID       {'0','.','0','0'}  // 4 Bytes only
00091 
00092 #define NO_SUPPORT_USB_PING_PONG
00093 
00094 #define DUMMY     GPIOR1
00095 #define SPI_CONFIG 0x00
00096 
00098 #define NB_IDLE_POLLING_SOF  2               
00099 #define MOUSE_SPEED          2               
00100 
00101 
00102 #define FLASH_PAGE_SIZE       0x100
00103 
00104 // USHELL configuration, if we have one ... ___________________________
00105 
00106 #define USHELL_DFU            ENABLE
00107 #define USHELL_USB            ENABLE
00108 #define USHELL_HID            ENABLE
00109 #define USHELL_HISTORY        1
00110 
00111 #define MAX_FILE_LENGHT       30
00112 
00113 #define TRACE                 DISABLE
00114 
00115 #if (TRACE==ENABLE)
00116 extern void ushell_trace_msg(U8 code *str);
00117 #define LOG_STR_CODE(s)    ushell_trace_msg(s)
00118 #endif
00119 
00121 
00122 #endif // _CONFIG_H_
00123 

Generated on Mon Feb 19 09:31:47 2007 for Atmel by  doxygen 1.5.1-p1