Go to the documentation of this file.
8 #ifndef CONTIKI_CONF_H_
9 #define CONTIKI_CONF_H_
16 #include PROJECT_CONF_H
25 #define CLOCK_CONF_SECOND 128
32 typedef uint32_t clock_time_t;
33 typedef uint32_t uip_stats_t;
39 typedef uint32_t rtimer_clock_t;
40 #define RTIMER_CLOCK_LT(a,b) ((int32_t)((a)-(b)) < 0)
48 #ifndef FLASH_CCA_CONF_BOOTLDR_BACKDOOR
49 #define FLASH_CCA_CONF_BOOTLDR_BACKDOOR 1
60 #define CTRL_EP_SIZE 8
61 #define USB_EP1_SIZE 32
62 #define USB_EP2_SIZE 64
63 #define USB_EP3_SIZE 64
64 #define USB_ARCH_WRITE_NOTIFY 0
66 #ifndef USB_ARCH_CONF_DMA
67 #define USB_ARCH_CONF_DMA 1
77 #ifndef ENERGEST_CONF_ON
78 #define ENERGEST_CONF_ON 0
81 #ifndef STARTUP_CONF_VERBOSE
82 #define STARTUP_CONF_VERBOSE 1
91 #define USB_ARCH_CONF_RX_DMA_CHAN 0
92 #define USB_ARCH_CONF_TX_DMA_CHAN 1
93 #define CC2538_RF_CONF_TX_DMA_CHAN 2
94 #define CC2538_RF_CONF_RX_DMA_CHAN 3
95 #define UDMA_CONF_MAX_CHANNEL CC2538_RF_CONF_RX_DMA_CHAN
103 #ifndef UART_CONF_ENABLE
104 #define UART_CONF_ENABLE 1
107 #ifndef UART_CONF_BAUD_RATE
108 #define UART_CONF_BAUD_RATE 115200
111 #ifndef SLIP_ARCH_CONF_USB
112 #define SLIP_ARCH_CONF_USB 0
114 #ifndef CC2538_RF_CONF_SNIFFER_USB
115 #define CC2538_RF_CONF_SNIFFER_USB 0
118 #define DBG_CONF_USB 0
122 #define SLIP_BRIDGE_CONF_NO_PUTCHAR 1
123 #define SLIP_RADIO_CONF_NO_PUTCHAR 1
125 #ifndef SLIP_ARCH_CONF_ENABLED
131 #if defined (UIP_FALLBACK_INTERFACE) || defined (CMD_CONF_OUTPUT)
132 #define SLIP_ARCH_CONF_ENABLED 1
141 #ifndef CC2538_RF_CONF_SNIFFER
142 #define CC2538_RF_CONF_SNIFFER 0
151 #ifndef CC2538_CONF_QUIET
152 #define CC2538_CONF_QUIET 0
156 #if CC2538_CONF_QUIET
157 #undef USB_SERIAL_CONF_ENABLE
158 #define USB_SERIAL_CONF_ENABLE 0
160 #undef UART_CONF_ENABLE
161 #define UART_CONF_ENABLE 0
163 #undef STARTUP_CONF_VERBOSE
164 #define STARTUP_CONF_VERBOSE 0
167 #if CC2538_RF_CONF_SNIFFER
168 #error "CC2538_RF_CONF_SNIFFER == 1 and CC2538_CONF_QUIET == 1"
169 #error "These values are conflicting. Please set either to 0"
176 #ifndef USB_SERIAL_CONF_ENABLE
177 #define USB_SERIAL_CONF_ENABLE \
178 ((SLIP_ARCH_CONF_USB & SLIP_ARCH_CONF_ENABLED) | \
180 (CC2538_RF_CONF_SNIFFER & CC2538_RF_CONF_SNIFFER_USB))
187 #if SLIP_ARCH_CONF_ENABLED
188 #define DBG_CONF_SLIP_MUX (SLIP_ARCH_CONF_USB==DBG_CONF_USB)
200 #ifndef NETSTACK_CONF_NETWORK
202 #define NETSTACK_CONF_NETWORK sicslowpan_driver
204 #define NETSTACK_CONF_NETWORK rime_driver
208 #ifndef NETSTACK_CONF_MAC
209 #define NETSTACK_CONF_MAC csma_driver
212 #ifndef NETSTACK_CONF_RDC
213 #define NETSTACK_CONF_RDC contikimac_driver
217 #define NULLRDC_802154_AUTOACK 1
218 #define NULLRDC_802154_AUTOACK_HW 1
221 #define CONTIKIMAC_CONF_WITH_CONTIKIMAC_HEADER 0
222 #define CONTIKIMAC_CONF_WITH_PHASE_OPTIMIZATION 0
223 #define WITH_FAST_SLEEP 1
225 #ifndef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
226 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
229 #ifndef NETSTACK_CONF_FRAMER
230 #define NETSTACK_CONF_FRAMER framer_802154
233 #define NETSTACK_CONF_RADIO cc2538_rf_driver
240 #ifndef LPM_CONF_ENABLE
241 #define LPM_CONF_ENABLE 1
250 #ifndef LPM_CONF_MAX_PM
251 #define LPM_CONF_MAX_PM 1
254 #ifndef LPM_CONF_STATS
255 #define LPM_CONF_STATS 0
270 #ifndef IEEE_ADDR_CONF_HARDCODED
271 #define IEEE_ADDR_CONF_HARDCODED 0
278 #ifndef IEEE_ADDR_CONF_ADDRESS
279 #define IEEE_ADDR_CONF_ADDRESS { 0x00, 0x12, 0x4B, 0x00, 0x89, 0xAB, 0xCD, 0xEF }
288 #ifndef IEEE_ADDR_CONF_USE_SECONDARY_LOCATION
289 #define IEEE_ADDR_CONF_USE_SECONDARY_LOCATION 0
299 #ifndef IEEE802154_CONF_PANID
300 #define IEEE802154_CONF_PANID 0x5449
303 #ifndef CC2538_RF_CONF_CHANNEL
304 #define CC2538_RF_CONF_CHANNEL 25
307 #ifndef CC2538_RF_CONF_AUTOACK
308 #define CC2538_RF_CONF_AUTOACK 1
311 #ifndef CC2538_RF_CONF_TX_USE_DMA
312 #define CC2538_RF_CONF_TX_USE_DMA 1
315 #ifndef CC2538_RF_CONF_RX_USE_DMA
316 #define CC2538_RF_CONF_RX_USE_DMA 1
327 #ifndef UIP_CONF_IPV6
328 #define UIP_CONF_IPV6 0
334 #define LINKADDR_CONF_SIZE 8
335 #define UIP_CONF_LL_802154 1
336 #define UIP_CONF_LLH_LEN 0
337 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
341 #define UIP_CONF_TCP 1
343 #ifndef UIP_CONF_TCP_MSS
344 #define UIP_CONF_TCP_MSS 64
346 #define UIP_CONF_UDP 1
347 #define UIP_CONF_UDP_CHECKSUMS 1
348 #define UIP_CONF_ICMP6 1
351 #ifndef UIP_CONF_ROUTER
352 #define UIP_CONF_ROUTER 1
355 #ifndef UIP_CONF_IPV6_RPL
356 #define UIP_CONF_IPV6_RPL 1
359 #define UIP_CONF_ND6_SEND_RA 0
360 #define UIP_CONF_IP_FORWARD 0
361 #define RPL_CONF_STATS 0
362 #define RPL_CONF_MAX_DAG_ENTRIES 1
364 #define RPL_CONF_OF rpl_mrhof
367 #define UIP_CONF_ND6_REACHABLE_TIME 600000
368 #define UIP_CONF_ND6_RETRANS_TIMER 10000
370 #ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
371 #define NBR_TABLE_CONF_MAX_NEIGHBORS 20
373 #ifndef UIP_CONF_MAX_ROUTES
374 #define UIP_CONF_MAX_ROUTES 20
378 #ifndef UIP_CONF_BUFFER_SIZE
379 #define UIP_CONF_BUFFER_SIZE 1300
382 #define UIP_CONF_IPV6_QUEUE_PKT 0
383 #define UIP_CONF_IPV6_CHECKS 1
384 #define UIP_CONF_IPV6_REASSEMBLY 0
385 #define UIP_CONF_MAX_LISTENPORTS 8
388 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
389 #ifndef SICSLOWPAN_CONF_COMPRESSION_THRESHOLD
390 #define SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 63
392 #ifndef SICSLOWPAN_CONF_FRAG
393 #define SICSLOWPAN_CONF_FRAG 1
395 #define SICSLOWPAN_CONF_MAXAGE 8
398 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 1
399 #ifndef SICSLOWPAN_CONF_ADDR_CONTEXT_0
400 #define SICSLOWPAN_CONF_ADDR_CONTEXT_0 { \
401 addr_contexts[0].prefix[0] = 0xaa; \
402 addr_contexts[0].prefix[1] = 0xaa; \
406 #define MAC_CONF_CHANNEL_CHECK_RATE 8
408 #ifndef QUEUEBUF_CONF_NUM
409 #define QUEUEBUF_CONF_NUM 8
414 #define UIP_CONF_IP_FORWARD 1
416 #ifndef UIP_CONF_BUFFER_SIZE
417 #define UIP_CONF_BUFFER_SIZE 108
420 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
422 #ifndef QUEUEBUF_CONF_NUM
423 #define QUEUEBUF_CONF_NUM 8