Contiki 2.5
contiki-conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2006, Technical University of Munich
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of the Institute nor the names of its contributors
14  * may be used to endorse or promote products derived from this software
15  * without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27  * SUCH DAMAGE.
28  *
29  * This file is part of the Contiki operating system.
30  *
31  * @(#)$$
32  */
33 
34 /**
35  * \file
36  * Configuration for RZRAVEN USB stick "jackdaw"
37  *
38  * \author
39  * Simon Barner <barner@in.tum.de>
40  * David Kopf <dak664@embarqmail.com>
41  */
42 
43 #ifndef __CONTIKI_CONF_H__
44 #define __CONTIKI_CONF_H__
45 
46 /* ************************************************************************** */
47 //#pragma mark Basic Configuration
48 /* ************************************************************************** */
49 
50 /* MCU and clock rate */
51 #define PLATFORM PLATFORM_AVR
52 #define RAVEN_REVISION RAVENUSB_C
53 #ifndef F_CPU
54 #define F_CPU 8000000UL
55 #endif
56 
57 #include <stdbool.h>
58 #include <stdint.h>
59 #include <string.h>
60 
61 typedef int32_t s32_t;
62 typedef unsigned char u8_t;
63 typedef unsigned short u16_t;
64 typedef unsigned long u32_t;
65 typedef unsigned short clock_time_t;
66 typedef unsigned short uip_stats_t;
67 typedef unsigned long off_t;
68 
69 void clock_delay(unsigned int us2);
70 void clock_wait(int ms10);
71 void clock_set_seconds(unsigned long s);
72 unsigned long clock_seconds(void);
73 
74 /* Maximum timer interval for 16 bit clock_time_t */
75 #define INFINITE_TIME 0xffff
76 
77 /* Clock ticks per second */
78 #define CLOCK_CONF_SECOND 125
79 
80 /* Maximum tick interval is 0xffff/125 = 524 seconds */
81 #define RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_CONF_SECOND * 524UL /* Default uses 600UL */
82 #define COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_CONF_SECOND * 524UL /* Default uses 600UL */
83 
84 /* Use EEPROM settings manager, or hard-coded EEPROM reads? */
85 /* Generate random MAC address on first startup? */
86 /* Random number from radio clock skew or ADC noise? */
87 #define JACKDAW_CONF_USE_SETTINGS 0
88 #define JACKDAW_CONF_RANDOM_MAC 0
89 #define RNG_CONF_USE_RADIO_CLOCK 1
90 //#define RNG_CONF_USE_ADC 1
91 
92 /* COM port to be used for SLIP connection. Not tested on Jackdaw. */
93 #define SLIP_PORT RS232_PORT_0
94 
95 /* Pre-allocated memory for loadable modules heap space (in bytes)*/
96 /* Default is 4096. Currently used only when elfloader is present. Not tested on Jackdaw */
97 //#define MMEM_CONF_SIZE 256
98 
99 /* Starting address for code received via the codeprop facility. Not tested on Jackdaw */
100 //#define EEPROMFS_ADDR_CODEPROP 0x8000
101 
102 /* Simple stack monitor. Status is displayed from the USB menu with 'm' command */
103 #define CONFIG_STACK_MONITOR 1
104 
105 /* RADIO_CONF_CALIBRATE_INTERVAL is used in rf230bb and clock.c. If nonzero a 256 second interval is used */
106 /* Calibration is automatic when the radio wakes so is not necessary when the radio periodically sleeps */
107 //#define RADIO_CONF_CALIBRATE_INTERVAL 256
108 
109 /* RADIOSTATS is used in rf230bb, clock.c and the webserver cgi to report radio usage */
110 //#define RADIOSTATS 1
111 
112 /* Possible watchdog timeouts depend on mcu. Default is WDTO_2S. -1 Disables the watchdog. */
113 //#define WATCHDOG_CONF_TIMEOUT -1
114 
115 /* ************************************************************************** */
116 //#pragma mark USB Ethernet Hooks
117 /* ************************************************************************** */
118 
119 #ifndef USB_ETH_HOOK_IS_READY_FOR_INBOUND_PACKET
120 #if RF230BB
121 #define USB_ETH_HOOK_IS_READY_FOR_INBOUND_PACKET() rf230_is_ready_to_send()
122 #else
123 static inline uint8_t radio_is_ready_to_send_() {
124  switch(radio_get_trx_state()) {
125  case BUSY_TX:
126  case BUSY_TX_ARET:
127  return 0;
128  }
129  return 1;
130 }
131 #define USB_ETH_HOOK_IS_READY_FOR_INBOUND_PACKET() radio_is_ready_to_send_()
132 #endif
133 #endif
134 
135 #ifndef USB_ETH_HOOK_HANDLE_INBOUND_PACKET
136 #define USB_ETH_HOOK_HANDLE_INBOUND_PACKET(buffer,len) do { uip_len = len ; mac_ethernetToLowpan(buffer); } while(0)
137 #endif
138 
139 #ifndef USB_ETH_HOOK_SET_PROMISCIOUS_MODE
140 #if RF230BB
141 #define USB_ETH_HOOK_SET_PROMISCIOUS_MODE(value) rf230_set_promiscuous_mode(value)
142 #else
143 #define USB_ETH_HOOK_SET_PROMISCIOUS_MODE(value) radio_set_trx_state(value?RX_ON:RX_AACK_ON)
144 #endif
145 #endif
146 
147 #ifndef USB_ETH_HOOK_INIT
148 #define USB_ETH_HOOK_INIT() mac_ethernetSetup()
149 #endif
150 
151 /* ************************************************************************** */
152 //#pragma mark RF230BB Hooks
153 /* ************************************************************************** */
154 
155 //#define RF230BB_HOOK_RADIO_OFF() Led1_off()
156 //#define RF230BB_HOOK_RADIO_ON() Led1_on()
157 #define RF230BB_HOOK_TX_PACKET(buffer,total_len) mac_log_802_15_4_tx(buffer,total_len)
158 #define RF230BB_HOOK_RX_PACKET(buffer,total_len) mac_log_802_15_4_rx(buffer,total_len)
159 #define RF230BB_HOOK_IS_SEND_ENABLED() mac_is_send_enabled()
160 extern bool mac_is_send_enabled(void);
161 extern void mac_log_802_15_4_tx(const uint8_t* buffer, size_t total_len);
162 extern void mac_log_802_15_4_rx(const uint8_t* buffer, size_t total_len);
163 
164 
165 /* ************************************************************************** */
166 //#pragma mark USB CDC-ACM (UART) Hooks
167 /* ************************************************************************** */
168 
169 #define USB_CDC_ACM_HOOK_TX_END(char) vcptx_end_led()
170 #define USB_CDC_ACM_HOOK_CLS_CHANGED(state) vcptx_end_led()
171 #define USB_CDC_ACM_HOOK_CONFIGURED() vcptx_end_led()
172 
173 /* ************************************************************************** */
174 //#pragma mark Serial Port Settings
175 /* ************************************************************************** */
176 /* Set USB_CONF_MACINTOSH to prefer CDC-ECM+DEBUG enumeration for Mac/Linux
177  * Leave undefined to prefer RNDIS+DEBUG enumeration for Windows/Linux
178  * TODO:Serial port would enumerate in all cases and prevent falling through to
179  * the supported network interface if USB_CONF_MACINTOSH is used with Windows
180  * or vice versa. The Mac configuration is set up to still enumerate as RNDIS-ONLY
181  * on Windows (without the serial port).
182  * At present the Windows configuration will not enumerate on the Mac at all,
183  * since it wants a custom descriptor for USB composite devices.
184  */
185 #define USB_CONF_MACINTOSH 0
186 
187 /* Set USB_CONF_SERIAL to enable the USB serial port that allows control of the
188  * run-time configuration (COMx on Windows, ttyACMx on Linux, tty.usbmodemx on Mac)
189  * Debug printfs will go to this port unless USB_CONF_RS232 is set.
190  */
191 #define USB_CONF_SERIAL 1
192 
193 /* RS232 debugs have less effect on network timing and are less likely
194  * to be dropped due to buffer overflow. Only tx is implemented at present.
195  * The tx pad is the middle one behind the jackdaw leds.
196  * RS232 output will work with or without enabling the USB serial port
197  */
198 #define USB_CONF_RS232 1
199 
200 /* Disable mass storage enumeration for more program space */
201 //#define USB_CONF_STORAGE 1 /* TODO: Mass storage is currently broken */
202 
203 /* ************************************************************************** */
204 //#pragma mark UIP Settings
205 /* ************************************************************************** */
206 /* Network setup. The new NETSTACK interface requires RF230BB (as does ip4) */
207 /* These mostly have no effect when the Jackdaw is a repeater (CONTIKI_NO_NET=1 using fakeuip.c) */
208 
209 #if RF230BB
210 #else
211 #define PACKETBUF_CONF_HDR_SIZE 0 //RF230 combined driver/mac handles headers internally
212 #endif /*RF230BB */
213 
214 #if UIP_CONF_IPV6
215 #define RIMEADDR_CONF_SIZE 8
216 #define UIP_CONF_ICMP6 1
217 #define UIP_CONF_UDP 1
218 #define UIP_CONF_TCP 0
219 //#define UIP_CONF_IPV6_RPL 0
220 #define NETSTACK_CONF_NETWORK sicslowpan_driver
221 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
222 #else
223 /* ip4 should build but is thoroughly untested */
224 #define RIMEADDR_CONF_SIZE 2
225 #define NETSTACK_CONF_NETWORK rime_driver
226 #endif /* UIP_CONF_IPV6 */
227 
228 /* See uip-ds6.h */
229 #define UIP_CONF_DS6_NBR_NBU 2
230 #define UIP_CONF_DS6_DEFRT_NBU 2
231 #define UIP_CONF_DS6_PREFIX_NBU 3
232 #define UIP_CONF_DS6_ROUTE_NBU 2
233 #define UIP_CONF_DS6_ADDR_NBU 3
234 #define UIP_CONF_DS6_MADDR_NBU 0
235 #define UIP_CONF_DS6_AADDR_NBU 0
236 
237 #define UIP_CONF_LL_802154 1
238 #define UIP_CONF_LLH_LEN 14
239 #define UIP_CONF_BUFSIZE UIP_LINK_MTU + UIP_LLH_LEN + 4 /* +4 for vlan on macosx */
240 
241 /* 10 bytes per stateful address context - see sicslowpan.c */
242 /* Default is 1 context with prefix aaaa::/64 */
243 /* These must agree with all the other nodes or there will be a failure to communicate! */
244 #//define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 1
245 #define SICSLOWPAN_CONF_ADDR_CONTEXT_0 {addr_contexts[0].prefix[0]=0xaa;addr_contexts[0].prefix[1]=0xaa;}
246 #define SICSLOWPAN_CONF_ADDR_CONTEXT_1 {addr_contexts[1].prefix[0]=0xbb;addr_contexts[1].prefix[1]=0xbb;}
247 #define SICSLOWPAN_CONF_ADDR_CONTEXT_2 {addr_contexts[2].prefix[0]=0x20;addr_contexts[2].prefix[1]=0x01;addr_contexts[2].prefix[2]=0x49;addr_contexts[2].prefix[3]=0x78,addr_contexts[2].prefix[4]=0x1d;addr_contexts[2].prefix[5]=0xb1;}
248 
249 /* 211 bytes per queue buffer */
250 #define QUEUEBUF_CONF_NUM 8
251 
252 /* 54 bytes per queue ref buffer */
253 #define QUEUEBUF_CONF_REF_NUM 2
254 
255 #define UIP_CONF_MAX_CONNECTIONS 1
256 #define UIP_CONF_MAX_LISTENPORTS 1
257 
258 #define UIP_CONF_IP_FORWARD 0
259 #define UIP_CONF_FWCACHE_SIZE 0
260 
261 #define UIP_CONF_IPV6_CHECKS 1
262 #define UIP_CONF_IPV6_QUEUE_PKT 1
263 #define UIP_CONF_IPV6_REASSEMBLY 0
264 
265 #define UIP_CONF_UDP_CHECKSUMS 1
266 #define UIP_CONF_TCP_SPLIT 0
267 #define UIP_CONF_STATISTICS 1
268 
269  /* Network setup */
270 #if 1 /* No radio cycling */
271 #define NETSTACK_CONF_MAC nullmac_driver
272 #define NETSTACK_CONF_RDC sicslowmac_driver
273 #define NETSTACK_CONF_FRAMER framer_802154
274 #define NETSTACK_CONF_RADIO rf230_driver
275 #define CHANNEL_802_15_4 26
276 /* If nonzero an interval of 256 seconds is used at present */
277 #define RADIO_CONF_CALIBRATE_INTERVAL 256
278 /* AUTOACK receive mode gives better rssi measurements, even if ACK is never requested */
279 #define RF230_CONF_AUTOACK 1
280 /* Request 802.15.4 ACK on all packets sent by sicslowpan.c (else autoretry) */
281 /* Broadcasts will be duplicated by the retry count, since no one will ACK them! */
282 #define SICSLOWPAN_CONF_ACK_ALL 0
283 /* Number of auto retry attempts 0-15 (0 implies don't use extended TX_ARET_ON mode with CCA) */
284 #define RF230_CONF_AUTORETRIES 2
285 /* CCA theshold energy -91 to -61 dBm (default -77). Set this smaller than the expected minimum rssi to avoid packet collisions */
286 /* The Jackdaw menu 'm' command is helpful for determining the smallest ever received rssi */
287 #define RF230_CONF_CCA_THRES -85
288 /* Number of CSMA attempts 0-7. 802.15.4 2003 standard max is 5. */
289 #define RF230_CONF_CSMARETRIES 5
290 /* Allow sneeze command from jackdaw menu. Useful for testing CCA on other radios */
291 /* During sneezing, any access to an RF230 register will hang the MCU and cause a watchdog reset */
292 /* The host interface, jackdaw menu and rf230_send routines are temporarily disabled to prevent this */
293 /* But some calls from an internal uip stack might get through, e.g. from CCA or low power protocols, */
294 /* as temporarily disabling all the possible accesses would add considerable complication to the radio driver! */
295 #define RF230_CONF_SNEEZER 1
296 /* Allow 6loWPAN fragmentation (more efficient for large payloads over a reliable channel) */
297 #define SICSLOWPAN_CONF_FRAG 1
298 /* Timeout for fragment reassembly. A reissued browser GET will also cancel reassembly, typically in 2-3 seconds */
299 #define SICSLOWPAN_CONF_MAXAGE 3
300 /* Allow sneeze command from jackdaw menu */
301 #define RF230_CONF_SNEEZE 1
302 
303 #elif 1 /* Contiki-mac radio cycling */
304 #define NETSTACK_CONF_MAC nullmac_driver
305 //#define NETSTACK_CONF_MAC csma_driver
306 #define NETSTACK_CONF_RDC contikimac_driver
307 #define NETSTACK_CONF_FRAMER framer_802154
308 #define NETSTACK_CONF_RADIO rf230_driver
309 #define CHANNEL_802_15_4 26
310 /* Enable extended mode with autoack, but no csma/autoretry */
311 #define RF230_CONF_AUTORETRIES 1
312 #define RF230_CONF_AUTOACK 1
313 #define RF230_CONF_CSMARETRIES 0
314 #define SICSLOWPAN_CONF_FRAG 1
315 #define SICSLOWPAN_CONF_MAXAGE 3
316 /* Jackdaw has USB power, can be always listening */
317 #define CONTIKIMAC_CONF_RADIO_ALWAYS_ON 1
318 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
319 
320 /* Contiki-mac is a memory hog */
321 #define PROCESS_CONF_NO_PROCESS_NAMES 1
322 #undef QUEUEBUF_CONF_NUM
323 #define QUEUEBUF_CONF_NUM 2
324 #undef QUEUEBUF_CONF_REF_NUM
325 #define QUEUEBUF_CONF_REF_NUM 1
326 #undef UIP_CONF_TCP_SPLIT
327 #define UIP_CONF_TCP_SPLIT 0
328 #undef UIP_CONF_STATISTICS
329 #define UIP_CONF_STATISTICS 0
330 #undef UIP_CONF_IPV6_QUEUE_PKT
331 #define UIP_CONF_IPV6_QUEUE_PKT 0
332 #define UIP_CONF_PINGADDRCONF 0
333 #define UIP_CONF_LOGGING 0
334 #undef UIP_CONF_MAX_CONNECTIONS
335 #define UIP_CONF_MAX_CONNECTIONS 2
336 #undef UIP_CONF_MAX_LISTENPORTS
337 #define UIP_CONF_MAX_LISTENPORTS 2
338 #define UIP_CONF_UDP_CONNS 6
339 
340 #elif 1 /* cx-mac radio cycling */
341 #define NETSTACK_CONF_MAC nullmac_driver
342 //#define NETSTACK_CONF_MAC csma_driver
343 #define NETSTACK_CONF_RDC cxmac_driver
344 #define NETSTACK_CONF_FRAMER framer_802154
345 #define NETSTACK_CONF_RADIO rf230_driver
346 #define CHANNEL_802_15_4 26
347 #define RF230_CONF_AUTOACK 1
348 #define RF230_CONF_AUTORETRIES 1
349 #define SICSLOWPAN_CONF_FRAG 1
350 #define SICSLOWPAN_CONF_MAXAGE 3
351 #define CXMAC_CONF_ANNOUNCEMENTS 0
352 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
353 #undef QUEUEBUF_CONF_NUM
354 #define QUEUEBUF_CONF_NUM 8
355 #undef UIP_CONF_DS6_NBR_NBU
356 #define UIP_CONF_DS6_NBR_NBU 5
357 #undef UIP_CONF_DS6_ROUTE_NBU
358 #define UIP_CONF_DS6_ROUTE_NBU 5
359 
360 #else
361 #error Network configuration not specified!
362 #endif /* Network setup */
363 
364 
365 /* ************************************************************************** */
366 //#pragma mark RPL Settings
367 /* ************************************************************************** */
368 
369 #if UIP_CONF_IPV6_RPL
370 
371 /* Not completely working yet. Works on Ubuntu after $ifconfig usb0 -arp to drop the neighbor solitications */
372 /* Dropping the NS on other OSs is more complicated, see http://www.sics.se/~adam/wiki/index.php/Jackdaw_RNDIS_RPL_border_router */
373 
374 /* RPL requires the uip stack. Change #CONTIKI_NO_NET=1 to UIP_CONF_IPV6=1 in the examples makefile,
375  or include the needed source files in /plaftorm/avr-ravenusb/Makefile.avr-ravenusb */
376 /* For the present the buffer_length calcs in rpl-icmp6.c will need adjustment by the length difference
377  between 6lowpan (0) and ethernet (14) link-layer headers:
378  // buffer_length = uip_len - uip_l2_l3_icmp_hdr_len;
379  buffer_length = uip_len - uip_l2_l3_icmp_hdr_len + UIP_LLH_LEN; //Add jackdaw ethernet header
380  */
381 
382 /* Define MAX_*X_POWER to reduce tx power and ignore weak rx packets for testing a miniature multihop network.
383  * Leave undefined for full power and sensitivity.
384  * tx=0 (3dbm, default) to 15 (-17.2dbm)
385  * RF230_CONF_AUTOACK sets the extended mode using the energy-detect register with rx=0 (-91dBm) to 84 (-7dBm)
386  * else the rssi register is used having range 0 (91dBm) to 28 (-10dBm)
387  * For simplicity RF230_MIN_RX_POWER is based on the energy-detect value and divided by 3 when autoack is not set.
388  * On the RF230 a reduced rx power threshold will not prevent autoack if enabled and requested.
389  * These numbers applied to both Raven and Jackdaw give a maximum communication distance of about 15 cm
390  * and a 10 meter range to a full-sensitivity RF230 sniffer.
391 #define RF230_MAX_TX_POWER 15
392 #define RF230_MIN_RX_POWER 30
393  */
394 
395 #define UIP_CONF_ROUTER 1
396 #define UIP_CONF_ND6_SEND_RA 0
397 #define UIP_CONF_ND6_REACHABLE_TIME 600000
398 #define UIP_CONF_ND6_RETRANS_TIMER 10000
399 
400 #ifndef RPL_BORDER_ROUTER
401 #define RPL_BORDER_ROUTER 1
402 #endif
403 #define RPL_CONF_STATS 0
404 #define UIP_CONF_BUFFER_SIZE 1300
405 //#define UIP_CONF_DS6_NBR_NBU 12
406 //#define UIP_CONF_DS6_ROUTE_NBU 12
407 
408 #ifdef RPL_BORDER_ROUTER
409 #undef UIP_FALLBACK_INTERFACE
410 #define UIP_FALLBACK_INTERFACE rpl_interface
411 #endif
412 
413 /* Save all the RAM we can */
414 #define PROCESS_CONF_NO_PROCESS_NAMES 1
415 #undef QUEUEBUF_CONF_NUM
416 #define QUEUEBUF_CONF_NUM 2
417 #undef QUEUEBUF_CONF_REF_NUM
418 #define QUEUEBUF_CONF_REF_NUM 1
419 #undef UIP_CONF_TCP_SPLIT
420 #define UIP_CONF_TCP_SPLIT 0
421 #undef UIP_CONF_STATISTICS
422 #define UIP_CONF_STATISTICS 0
423 #undef UIP_CONF_IPV6_QUEUE_PKT
424 #define UIP_CONF_IPV6_QUEUE_PKT 0
425 #define UIP_CONF_PINGADDRCONF 0
426 #define UIP_CONF_LOGGING 0
427 #undef UIP_CONF_MAX_CONNECTIONS
428 #define UIP_CONF_MAX_CONNECTIONS 2
429 #undef UIP_CONF_MAX_LISTENPORTS
430 #define UIP_CONF_MAX_LISTENPORTS 2
431 #define UIP_CONF_UDP_CONNS 6
432 
433 /* Optional, TCP needed to serve the RPL neighbor web page currently hard coded at bbbb::200 */
434 /* The RPL neighbors can also be viewed using the jackdaw menu */
435 /* A small MSS is adequate for the internal jackdaw webserver and RAM is very limited*/
436 #define RPL_HTTPD_SERVER 0
437 #if RPL_HTTPD_SERVER
438 #undef UIP_CONF_TCP
439 #define UIP_CONF_TCP 1
440 #define UIP_CONF_TCP_MSS 48
441 #define UIP_CONF_RECEIVE_WINDOW 48
442 #undef UIP_CONF_DS6_NBR_NBU
443 #define UIP_CONF_DS6_NBR_NBU 5
444 #undef UIP_CONF_DS6_ROUTE_NBU
445 #define UIP_CONF_DS6_ROUTE_NBU 5
446 #undef UIP_CONF_MAX_CONNECTIONS
447 #define UIP_CONF_MAX_CONNECTIONS 2
448 #endif
449 
450 #define UIP_CONF_ICMP_DEST_UNREACH 1
451 #define UIP_CONF_DHCP_LIGHT
452 #undef UIP_CONF_FWCACHE_SIZE
453 #define UIP_CONF_FWCACHE_SIZE 30
454 #define UIP_CONF_BROADCAST 1
455 //#define UIP_ARCH_IPCHKSUM 1
456 
457 /* Experimental option to pick up a prefix from host interface router advertisements */
458 /* Requires changes in uip6 and uip-nd6.c to pass link-local RA broadcasts */
459 /* If this is zero the prefix will be manually set in contiki-raven-main.c */
460 #define UIP_CONF_ROUTER_RECEIVE_RA 0
461 
462 #endif /* UIP_CONF_IPV6_RPL */
463 
464 /* ************************************************************************** */
465 //#pragma mark Other Settings
466 /* ************************************************************************** */
467 
468 /* Use Atmel 'Route Under MAC', currently just in RF230 sniffer mode! */
469 /* Route-Under-MAC uses 16-bit short addresses */
470 //#define UIP_CONF_USE_RUM 1
471 #if UIP_CONF_USE_RUM
472 #undef UIP_CONF_LL_802154
473 #define UIP_DATA_RUM_OFFSET 5
474 #endif /* UIP_CONF_USE_RUM */
475 
476 #define CCIF
477 #define CLIF
478 
479 #endif /* __CONTIKI_CONF_H__ */