Contiki 2.5
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 (CC2431-F128)"
7 #endif
8 #ifdef MODEL_N600
9 #define SENSINODE_MODEL "N600 NanoRouter USB (CC2430-F128)"
10 #endif
11 #ifdef MODEL_N601
12 #define SENSINODE_MODEL "N601 NanoRouter USB (CC2431-F128)"
13 #endif
14 #ifdef MODEL_N710
15 #define SENSINODE_MODEL "N710 NanoSensor (CC2430-F128)"
16 #endif
17 #ifdef MODEL_N711
18 #define SENSINODE_MODEL "N711 NanoSensor (CC2431-F128)"
19 #endif
20 
21 #ifndef SENSINODE_MODEL
22 #define MODEL_N100
23 #define SENSINODE_MODEL "Sensinode N100 (CC2431-F128)"
24 #endif
25 
26 /* All current models use these LED pins */
27 #define LED1_PIN P0_4
28 #define LED2_PIN P0_5
29 
30 /* Buttons */
31 
32 #ifdef MODEL_N711
33 #define BUTTON1_PIN P0_6
34 #define BUTTON2_PIN P0_7
35 #endif
36 
37 /* Sensor pins */
38 
39 #ifdef MODEL_N711
40 #define LIGHT_PIN P0_0
41 #define TEMP_PIN P0_1
42 #endif
43 
44 #endif /* __MODELS_H__ */