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/radio/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 8 neighbors */
42 #ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
43 #define NBR_TABLE_CONF_MAX_NEIGHBORS 8
44 #endif
45 
46 /* Handle 8 routes */
47 #ifndef NETSTACK_MAX_ROUTE_ENTRIES
48 #define NETSTACK_MAX_ROUTE_ENTRIES 8
49 #endif
50 
51 #ifndef UIP_CONF_UDP_CONNS
52 #define UIP_CONF_UDP_CONNS 2
53 #endif
54 
55 #ifndef TSCH_CONF_MAX_INCOMING_PACKETS
56 #define TSCH_CONF_MAX_INCOMING_PACKETS 2
57 #endif
58 
59 #ifndef TSCH_QUEUE_CONF_NUM_PER_NEIGHBOR
60 #define TSCH_QUEUE_CONF_NUM_PER_NEIGHBOR 4
61 #endif
62 
63 #ifndef TSCH_LOG_CONF_QUEUE_LEN
64 #define TSCH_LOG_CONF_QUEUE_LEN 4
65 #endif
66 
67 #define TSCH_CONF_HW_FRAME_FILTERING 0
68 
69 /* Platform-specific (H/W) AES implementation */
70 #ifndef AES_128_CONF
71 #define AES_128_CONF cc2420_aes_128_driver
72 #endif /* AES_128_CONF */
73 
74 /*---------------------------------------------------------------------------*/
75 #include "msp430-conf.h"
76 /*---------------------------------------------------------------------------*/
77 #endif /* CONTIKI_CONF_H */
Platform configuration for the Z1 platform