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_AT90USB162__
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 #define  WRD_PHLPS  3
00041 #define  STK526     4
00042 #define  WRD_LGTEC  5
00043 
00045 #undef  USE_ADC
00048 #define TARGET_BOARD STK526
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 #elif (TARGET_BOARD==SPIDER)
00058    #include "lib_board\spider\spider_drv.h"
00059 #elif (TARGET_BOARD==WRD_PHLPS)
00060    #include "lib_board\wired_philips\mouse_wired_philips_drv.h"
00061 #elif (TARGET_BOARD==STK526)
00062    #include "lib_board\stk_526\stk_526.h"
00063 #elif (TARGET_BOARD==WRD_LGTEC)
00064    #include "lib_board\wired_logitech\mouse_wired_logitech_drv.h"
00065 #else
00066    #error TARGET_BOARD must be defined somewhere
00067 #endif
00068 
00069 
00070 #define BYPASS_USB_AUTOBAUD
00072 #define FOSC 8000
00073 
00074 
00075 // -------- END Generic Configuration -------------------------------------
00076 
00077 // UART Sample configuration, if we have one ... __________________________
00078 #define BAUDRATE        38400
00079 #define USE_UART2
00080 #define UART_U2
00081 
00082 //#define uart_putchar putchar
00083 #ifndef AVRGCC
00084    #define uart_usb_putchar putchar
00085 #endif
00086 #define r_uart_ptchar int
00087 #define p_uart_ptchar int
00088 
00089 #define NB_MS_BEFORE_FLUSH       50
00090 #define REPEAT_KEY_PRESSED       100
00091 
00093 
00094 #endif // _CONFIG_H_
00095 

Generated on Fri Jun 15 14:15:32 2007 for Atmel by  doxygen 1.5.1-p1