poppy_com  0.1
Poppy2.0 communication library
 All Classes Files Functions Variables Enumerations Enumerator Pages
config.h
1 /*
2  * This file contain default configuration of the project.
3  */
4 
5 #ifndef CONFIG_H_
6 #define CONFIG_H_
7 
8 #include "poppy-com/inc/mod_list.h"
9 
10 #define DEFAULTID 0x01
11 
12 #ifndef MODULETYPE
13  #define MODULETYPE DEV_BOARD
14 #endif
15 
16 #ifndef MCU
17  #define MCU atmega328p
18 #endif
19 
20 #ifndef MAINCLOCK
21  #define MAINCLOCK 16000000
22 #endif
23 
24 #ifndef SCLFREQ
25  #define SCLFREQ 400000
26 #endif
27 
28 #ifndef MAX_TRIES
29  #define MAX_TRIES 5
30 #endif
31 
32 #if MCU == atmega328p
33  #define HAL "poppy-com/hal/atmega328p/hal.h"
34 #elif MCU == stub
35  #define HAL "poppy-com/hal/stub/hal.h"
36 #elif MCU== atmega64
37  #define HAL "poppy-com/hal/atmega64/hal.h"
38 #endif
39 
40 #endif /* CONFIG_H_ */