Contiki-Inga 3.x
models.h
1 #ifndef MODELS_H_
2 #define MODELS_H_
3 
4 /* Define model text */
5 #ifdef MODEL_N100
6 #define SENSINODE_MODEL "N100 Module"
7 #endif
8 #ifdef MODEL_N600
9 #define SENSINODE_MODEL "N600 NanoRouter USB"
10 #endif
11 #ifdef MODEL_N601
12 #define SENSINODE_MODEL "N601 NanoRouter USB"
13 #endif
14 #ifdef MODEL_N710
15 #define SENSINODE_MODEL "N710 NanoSensor"
16 #endif
17 #ifdef MODEL_N711
18 #define SENSINODE_MODEL "N711 NanoSensor"
19 #endif
20 #ifdef MODEL_N740
21 #define SENSINODE_MODEL "N740 NanoSensor"
22 #endif
23 
24 #ifndef SENSINODE_MODEL
25 #define SENSINODE_MODEL "N100 Module"
26 #endif
27 
28 #ifndef FLASH_SIZE
29 #define FLASH_SIZE "F128"
30 #endif
31 
32 /*
33  * N740 has a serial-parallel chip onboard
34  * Defines and functions to control it
35  */
36 #ifdef MODEL_N740
37 #include "dev/n740.h"
38 
39 #else
40 /* All other models use these LED pins */
41 #define LED1_PIN P0_4
42 #define LED2_PIN P0_5
43 #endif
44 
45 #ifdef MODEL_N711
46 #define BUTTON1_PIN P0_6
47 #define BUTTON2_PIN P0_7
48 #endif
49 
50 /* Sensor pins */
51 
52 #ifdef MODEL_N711
53 #define LIGHT_PIN P0_0
54 #define TEMP_PIN P0_1
55 #endif
56 
57 /* Model-Specific startup functions */
58 void model_init();
59 void model_uart_intr_en();
60 #endif /* MODELS_H_ */