Contiki-NG
contiki-conf.h
1 #ifndef CONTIKI_CONF_H
2 #define CONTIKI_CONF_H
3 
4 /* include the project config */
5 #ifdef PROJECT_CONF_PATH
6 #include PROJECT_CONF_PATH
7 #endif /* PROJECT_CONF_PATH */
8 /*---------------------------------------------------------------------------*/
9 #include "z1-def.h"
10 #include "msp430-def.h"
11 /*---------------------------------------------------------------------------*/
12 
13 /* Configure radio driver */
14 #ifndef NETSTACK_CONF_RADIO
15 #define NETSTACK_CONF_RADIO cc2420_driver
16 #endif /* NETSTACK_CONF_RADIO */
17 
18 /* Symbol for the TSCH 15ms timeslot timing template */
19 #define TSCH_CONF_ARCH_HDR_PATH "dev/cc2420/cc2420-tsch-15ms.h"
20 
21 /* The TSCH default slot length of 10ms is a bit too short for this platform,
22  * use 15ms instead. */
23 #ifndef TSCH_CONF_DEFAULT_TIMESLOT_TIMING
24 #define TSCH_CONF_DEFAULT_TIMESLOT_TIMING tsch_timeslot_timing_us_15000
25 #endif /* TSCH_CONF_DEFAULT_TIMESLOT_TIMING */
26 
27 /* Save RAM through a smaller uIP buffer */
28 #ifndef UIP_CONF_BUFFER_SIZE
29 #define UIP_CONF_BUFFER_SIZE 140
30 #endif
31 
32 #define PROCESS_CONF_NUMEVENTS 8
33 #define PROCESS_CONF_STATS 1
34 /*#define PROCESS_CONF_FASTPOLL 4*/
35 
36 /* So far, printfs without interrupt. */
37 #define UART0_CONF_TX_WITH_INTERRUPT 0
38 /* This does not work in Cooja. */
39 #define UART0_CONF_RX_WITH_DMA 0
40 
41 /* Handle 10 neighbors */
42 #ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
43 #define NBR_TABLE_CONF_MAX_NEIGHBORS 10
44 #endif
45 
46 /* Handle 10 routes */
47 #ifndef NETSTACK_MAX_ROUTE_ENTRIES
48 #define NETSTACK_MAX_ROUTE_ENTRIES 10
49 #endif
50 
51 /* Handle 10 links */
52 #ifndef TSCH_SCHEDULE_CONF_MAX_LINKS
53 #define TSCH_SCHEDULE_CONF_MAX_LINKS 10
54 #endif
55 
56 #ifndef TSCH_CONF_MAX_INCOMING_PACKETS
57 #define TSCH_CONF_MAX_INCOMING_PACKETS 2
58 #endif
59 
60 #ifndef TSCH_QUEUE_CONF_NUM_PER_NEIGHBOR
61 #define TSCH_QUEUE_CONF_NUM_PER_NEIGHBOR 4
62 #endif
63 
64 /* Platform-specific (H/W) AES implementation */
65 #ifndef AES_128_CONF
66 #define AES_128_CONF cc2420_aes_128_driver
67 #endif /* AES_128_CONF */
68 
69 /*---------------------------------------------------------------------------*/
70 #include "msp430-conf.h"
71 /*---------------------------------------------------------------------------*/
72 #endif /* CONTIKI_CONF_H */
Platform configuration for the Z1 platform