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 
00036 #include "conf/conf_scheduler.h" 
00037 
00038 #define  STK525   0
00039 #define  USBKEY   1
00040 
00042 #define USE_ADC
00045 #define TARGET_BOARD STK525
00046 
00047 #if (TARGET_BOARD==USBKEY)
00050    #define USBKEY_HAS_321_DF
00051    #include "lib_board\usb_key\usb_key.h"
00052 #elif (TARGET_BOARD==STK525)
00053    #include "lib_board\stk_525\stk_525.h"
00054 #else
00055    #error TARGET_BOARD must be defined somewhere
00056 #endif
00057 
00058 
00060 #define FOSC 8000
00061 
00062 
00063 // -------- END Generic Configuration -------------------------------------
00064 
00065 // UART Sample configuration, if we have one ... __________________________
00066 #define BAUDRATE        57600
00067 #define USE_UART2
00068 
00069 #define uart_putchar putchar
00070 #define r_uart_ptchar int
00071 #define p_uart_ptchar int
00072 
00073 
00074 // ADC Sample configuration, if we have one ... ___________________________
00075 
00077 #define ADC_PRESCALER 64
00078 
00079 #define ADC_RIGHT_ADJUST_RESULT 1
00080 
00081 #define ADC_INTERNAL_VREF  2
00082 
00084 
00085 #endif // _CONFIG_H_
00086 

Generated on Fri Mar 17 16:02:03 2006 for Atmel by  doxygen 1.4.6-NO