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 
00044 #define TARGET_BOARD STK526
00045 
00046 #if (TARGET_BOARD==USBKEY)
00049    #define USBKEY_HAS_321_DF
00050    #include "lib_board\usb_key\usb_key.h"
00051 #elif (TARGET_BOARD==STK526)
00052    #include "lib_board\stk_526\stk_526.h"
00053 #elif (TARGET_BOARD==SPIDER)
00054    #include "lib_board\spider\spider_drv.h"
00055 #elif (TARGET_BOARD==WRD_PHLPS)
00056    #include "lib_board\wired_philips\mouse_wired_philips_drv.h"
00057    #include "lib_mcu/quickstart/at90usb162_quickstart_drv.h"
00058 #else
00059    #error TARGET_BOARD must be defined somewhere
00060 #endif
00061 
00062 
00064 #define FOSC 8000
00065 
00066 #define BYPASS_USB_AUTOBAUD
00067 
00068 // -------- END Generic Configuration -------------------------------------
00069 
00071 #define NB_IDLE_POLLING_SOF  8   
00072 #define MOUSE_SPEED          1
00073 #define WH_ZERO_MOTION       10
00074 
00075 
00076 #define DUMMY     GPIOR1                     
00077 #define SPI_CONFIG 0x00                      
00078 
00080 #define SBC_VENDOR_ID         {'A','T','M','E','L',' ',' ',' '}      // 8 Bytes only
00081 #define SBC_PRODUCT_ID        {'A','T','9','0','U','S','B','1','6','2',' ','M',' ','S',' ',' '}  // 16 Bytes only
00082 #define SBC_REVISION_ID       {'0','.','0','0'}  // 4 Bytes only
00083 
00085 
00086 #endif // _CONFIG_H_
00087 

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