1 #ifndef CONTIKI_CONF_H_
2 #define CONTIKI_CONF_H_
10 #include "project-conf.h"
17 #ifndef MODELS_CONF_CC2531_USB_STICK
18 #define MODELS_CONF_CC2531_USB_STICK 0
27 #ifndef CLOCK_CONF_STACK_FRIENDLY
28 #define CLOCK_CONF_STACK_FRIENDLY 1
31 #ifndef STACK_CONF_DEBUGGING
32 #define STACK_CONF_DEBUGGING 0
36 #ifndef ENERGEST_CONF_ON
37 #define ENERGEST_CONF_ON 0
41 #ifndef STARTUP_CONF_VERBOSE
42 #define STARTUP_CONF_VERBOSE 0
46 #define PROCESS_CONF_NO_PROCESS_NAMES 1
53 #define UART_ON_USART 0
55 #define UART1_CONF_ENABLE 0
57 #ifndef UART0_CONF_ENABLE
58 #define UART0_CONF_ENABLE 1
60 #ifndef UART0_CONF_WITH_INPUT
61 #define UART0_CONF_WITH_INPUT 0
64 #ifndef UART0_CONF_HIGH_SPEED
65 #define UART0_CONF_HIGH_SPEED 0
69 #ifndef USB_SERIAL_CONF_BUFFERED
70 #define USB_SERIAL_CONF_BUFFERED 1
73 #define SLIP_RADIO_CONF_NO_PUTCHAR 1
75 #if defined (UIP_FALLBACK_INTERFACE) || defined (CMD_CONF_OUTPUT)
76 #define SLIP_ARCH_CONF_ENABLE 1
80 #if SLIP_ARCH_CONF_ENABLE
82 #undef UART0_CONF_ENABLE
83 #undef UART0_CONF_WITH_INPUT
84 #define UART0_CONF_ENABLE 1
85 #define UART0_CONF_WITH_INPUT 1
89 #ifndef CC2530_RF_CONF_HEXDUMP
90 #define CC2530_RF_CONF_HEXDUMP 0
93 #if CC2530_RF_CONF_HEXDUMP
95 #undef UART_ZERO_CONF_ENABLE
96 #define UART_ZERO_CONF_ENABLE 1
108 #define NETSTACK_CONF_SHORTCUTS 1
115 #ifndef CC2530_CONF_MAC_FROM_PRIMARY
116 #define CC2530_CONF_MAC_FROM_PRIMARY 1
123 #ifndef PORT_2_ISR_ENABLED
124 #define PORT_2_ISR_ENABLED 0
132 #ifndef BUTTON_SENSOR_CONF_ON
133 #define BUTTON_SENSOR_CONF_ON 1
137 #ifndef CC2531_CONF_B2_REBOOTS
138 #define CC2531_CONF_B2_REBOOTS 0
142 #ifndef ADC_SENSOR_CONF_ON
143 #define ADC_SENSOR_CONF_ON 1
145 #define TEMP_SENSOR_CONF_ON 1
146 #define VDD_SENSOR_CONF_ON 1
147 #define BATTERY_SENSOR_CONF_ON 0
150 #ifndef LPM_CONF_MODE
151 #define LPM_CONF_MODE 0
156 #define DMA_CONF_ON 0
161 #ifndef VIZTOOL_CONF_ON
162 #define VIZTOOL_CONF_ON 1
167 #ifndef NETSTACK_CONF_NETWORK
169 #define NETSTACK_CONF_NETWORK sicslowpan_driver
171 #define NETSTACK_CONF_NETWORK rime_driver
175 #ifndef NETSTACK_CONF_MAC
176 #define NETSTACK_CONF_MAC csma_driver
179 #ifndef NETSTACK_CONF_RDC
180 #define NETSTACK_CONF_RDC nullrdc_driver
181 #define NULLRDC_802154_AUTOACK 1
182 #define NULLRDC_802154_AUTOACK_HW 1
185 #ifndef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
186 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
189 #ifndef NETSTACK_CONF_FRAMER
190 #define NETSTACK_CONF_FRAMER framer_802154
193 #define NETSTACK_CONF_RADIO cc2530_rf_driver
196 #define IEEE802154_CONF_PANID 0x5449
198 #ifndef CC2530_RF_CONF_CHANNEL
199 #define CC2530_RF_CONF_CHANNEL 25
202 #ifndef CC2530_RF_CONF_AUTOACK
203 #define CC2530_RF_CONF_AUTOACK 1
209 #define LINKADDR_CONF_SIZE 8
210 #define UIP_CONF_LL_802154 1
211 #define UIP_CONF_LLH_LEN 0
212 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
215 #define UIP_CONF_TCP 0
216 #define UIP_CONF_UDP 1
217 #define UIP_CONF_UDP_CHECKSUMS 1
220 #ifndef UIP_CONF_ROUTER
221 #define UIP_CONF_ROUTER 1
224 #define UIP_CONF_ND6_SEND_RA 0
225 #define UIP_CONF_IP_FORWARD 0
226 #define RPL_CONF_STATS 0
227 #define RPL_CONF_MAX_DAG_ENTRIES 1
229 #define RPL_CONF_OF rpl_mrhof
232 #define UIP_CONF_ND6_REACHABLE_TIME 600000
233 #define UIP_CONF_ND6_RETRANS_TIMER 10000
235 #ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
236 #define NBR_TABLE_CONF_MAX_NEIGHBORS 4
238 #ifndef UIP_CONF_MAX_ROUTES
239 #define UIP_CONF_MAX_ROUTES 4
243 #ifndef UIP_CONF_BUFFER_SIZE
244 #define UIP_CONF_BUFFER_SIZE 240
246 #define UIP_CONF_IPV6_QUEUE_PKT 0
247 #define UIP_CONF_IPV6_CHECKS 1
248 #define UIP_CONF_IPV6_REASSEMBLY 0
251 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
252 #ifndef SICSLOWPAN_CONF_FRAG
253 #define SICSLOWPAN_CONF_FRAG 0
255 #define SICSLOWPAN_CONF_MAXAGE 8
258 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 1
259 #define SICSLOWPAN_CONF_ADDR_CONTEXT_0 { \
260 addr_contexts[0].prefix[0] = 0xaa; \
261 addr_contexts[0].prefix[1] = 0xaa; \
264 #define MAC_CONF_CHANNEL_CHECK_RATE 8
266 #ifndef QUEUEBUF_CONF_NUM
267 #define QUEUEBUF_CONF_NUM 6
272 #define UIP_CONF_IP_FORWARD 1
273 #define UIP_CONF_BUFFER_SIZE 108
274 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
275 #define QUEUEBUF_CONF_NUM 8
280 #define UIP_CONF_DS6_AADDR_NBU 1