00001
00018
00019 #include "compiler.h"
00020 #include "mcu.h"
00021 #include "inavr.h"
00022
00023 #ifndef _CONFIG_H_
00024 #define _CONFIG_H_
00025 #endif
00026
00027 #define BOARD_ID 1
00028 #define SOFT_ID 3
00029 #define REV_ID 1
00030
00031
00032 #define MCU_REV_B
00033
00034
00035
00036
00037
00038
00039 #define BAUDRATE 38400
00040 #define FOSC 16000
00041
00042 #define uart_putchar putchar
00043
00044
00048 #define USE_ADC
00049
00050 #define ADC_RIGHT_ADJUST_RESULT 0
00051 #define ADC_HIGH_SPEED_MODE 1 //
00052 #define ADC_INTERNAL_VREF 1
00053 #define ADC_IT 1
00054 #define ADC_PRESCALER 4
00055
00059 #define USE_DAC
00060
00061 #define DAC_INPUT_RIGHT_ADJUST 0
00062 #define DAC_INTERNAL_VREF 1
00063 #define DAC_OUTPUT_DRIVER 1
00064
00068 #define USE_AMP1
00069
00070 #define AMP1_INPUT_SHUNT 0
00071 #define AMP1_GAIN 20
00072 #define AMP1_CLOCK 1
00073
00077 #define USE_COMP0
00078 #define COMPARATOR0_IT 1
00079 #define COMPARATOR0_IT_EVENT 0
00080 #ifdef USE_INTERNAL_COMPARATORS
00081 #define COMPARATOR0_NEGATIVE_INPUT 5
00082 #else
00083 #define COMPARATOR0_NEGATIVE_INPUT 3
00084 #endif
00085
00086 #define USE_COMP1
00087 #define COMPARATOR1_IT 1
00088 #define COMPARATOR1_IT_EVENT 0
00089 #ifdef USE_INTERNAL_COMPARATORS
00090 #define COMPARATOR1_NEGATIVE_INPUT 5
00091 #else
00092 #define COMPARATOR1_NEGATIVE_INPUT 3
00093 #endif
00094
00095 #define USE_COMP2
00096 #define COMPARATOR2_IT 1
00097 #define COMPARATOR2_IT_EVENT 0
00098 #ifdef USE_INTERNAL_COMPARATORS
00099 #define COMPARATOR2_NEGATIVE_INPUT 5
00100 #else
00101 #define COMPARATOR2_NEGATIVE_INPUT 3
00102 #endif