Contiki 3.x
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 /* Platform name, type, and MCU clock rate */
51 #define PLATFORM_NAME "RAVENUSB"
52 #define PLATFORM_TYPE 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 #include <avr/eeprom.h>
62 
63 /* Skip the last four bytes of the EEPROM, to leave room for things
64  * like the avrdude erase count and bootloader signaling. */
65 #define EEPROM_CONF_SIZE ((E2END + 1) - 4)
66 
67 /* The AVR tick interrupt usually is done with an 8 bit counter around 128 Hz.
68  * 125 Hz needs slightly more overhead during the interrupt, as does a 32 bit
69  * clock_time_t.
70  */
71  /* Clock ticks per second */
72 #define CLOCK_CONF_SECOND 125
73 
74 typedef uint32_t clock_time_t;
75 #define CLOCK_LT(a,b) ((int32_t)((a)-(b)) < 0)
76 
77 /* These routines are not part of the contiki core but can be enabled in cpu/avr/clock.c */
78 void clock_delay_msec(uint16_t howlong);
79 void clock_adjust_ticks(clock_time_t howmany);
80 
81 /* Use EEPROM settings manager, or hard-coded EEPROM reads? */
82 /* Generate random MAC address on first startup? */
83 /* Random number from radio clock skew or ADC noise? */
84 #define JACKDAW_CONF_USE_SETTINGS 0
85 #define JACKDAW_CONF_RANDOM_MAC 0
86 #define RNG_CONF_USE_RADIO_CLOCK 1
87 //#define RNG_CONF_USE_ADC 1
88 
89 /* COM port to be used for SLIP connection. Not tested on Jackdaw. */
90 #define SLIP_PORT RS232_PORT_0
91 
92 /* Pre-allocated memory for loadable modules heap space (in bytes)*/
93 /* Default is 4096. Currently used only when elfloader is present. Not tested on Jackdaw */
94 //#define MMEM_CONF_SIZE 256
95 
96 /* Starting address for code received via the codeprop facility. Not tested on Jackdaw */
97 typedef unsigned long off_t;
98 //#define EEPROMFS_ADDR_CODEPROP 0x8000
99 
100 /* Simple stack monitor. Status is displayed from the USB menu with 'm' command */
101 #define CONFIG_STACK_MONITOR 1
102 
103 /* RADIO_CONF_CALIBRATE_INTERVAL is used in rf230bb and clock.c. If nonzero a 256 second interval is used */
104 /* Calibration is automatic when the radio wakes so is not necessary when the radio periodically sleeps */
105 //#define RADIO_CONF_CALIBRATE_INTERVAL 256
106 
107 /* RADIOSTATS is used in rf230bb, clock.c and the webserver cgi to report radio usage */
108 //#define RADIOSTATS 1
109 
110 /* Possible watchdog timeouts depend on mcu. Default is WDTO_2S. -1 Disables the watchdog. */
111 //#define WATCHDOG_CONF_TIMEOUT -1
112 
113 /* ************************************************************************** */
114 //#pragma mark USB Ethernet Hooks
115 /* ************************************************************************** */
116 
117 #ifndef USB_ETH_HOOK_IS_READY_FOR_INBOUND_PACKET
118 #if RF230BB
119 #define USB_ETH_HOOK_IS_READY_FOR_INBOUND_PACKET() rf230_is_ready_to_send()
120 #else
121 static inline uint8_t radio_is_ready_to_send_() {
122  switch(radio_get_trx_state()) {
123  case BUSY_TX:
124  case BUSY_TX_ARET:
125  return 0;
126  }
127  return 1;
128 }
129 #define USB_ETH_HOOK_IS_READY_FOR_INBOUND_PACKET() radio_is_ready_to_send_()
130 #endif
131 #endif
132 
133 #ifndef USB_ETH_HOOK_HANDLE_INBOUND_PACKET
134 #define USB_ETH_HOOK_HANDLE_INBOUND_PACKET(buffer,len) do { uip_len = len ; mac_ethernetToLowpan(buffer); } while(0)
135 #endif
136 
137 #ifndef USB_ETH_HOOK_SET_PROMISCIOUS_MODE
138 #if RF230BB
139 #define USB_ETH_HOOK_SET_PROMISCIOUS_MODE(value) rf230_set_promiscuous_mode(value)
140 #else
141 #define USB_ETH_HOOK_SET_PROMISCIOUS_MODE(value) radio_set_trx_state(value?RX_ON:RX_AACK_ON)
142 #endif
143 #endif
144 
145 #ifndef USB_ETH_HOOK_INIT
146 #define USB_ETH_HOOK_INIT() mac_ethernetSetup()
147 #endif
148 
149 /* ************************************************************************** */
150 //#pragma mark RF230BB Hooks
151 /* ************************************************************************** */
152 
153 //#define RF230BB_HOOK_RADIO_OFF() Led1_off()
154 //#define RF230BB_HOOK_RADIO_ON() Led1_on()
155 #define RF230BB_HOOK_TX_PACKET(buffer,total_len) mac_log_802_15_4_tx(buffer,total_len)
156 #define RF230BB_HOOK_RX_PACKET(buffer,total_len) mac_log_802_15_4_rx(buffer,total_len)
157 #define RF230BB_HOOK_IS_SEND_ENABLED() mac_is_send_enabled()
158 extern bool mac_is_send_enabled(void);
159 extern void mac_log_802_15_4_tx(const uint8_t* buffer, size_t total_len);
160 extern void mac_log_802_15_4_rx(const uint8_t* buffer, size_t total_len);
161 
162 
163 /* ************************************************************************** */
164 //#pragma mark USB CDC-ACM (UART) Hooks
165 /* ************************************************************************** */
166 
167 #define USB_CDC_ACM_HOOK_TX_END(char) vcptx_end_led()
168 #define USB_CDC_ACM_HOOK_CLS_CHANGED(state) vcptx_end_led()
169 #define USB_CDC_ACM_HOOK_CONFIGURED() vcptx_end_led()
170 
171 /* ************************************************************************** */
172 //#pragma mark Serial Port Settings
173 /* ************************************************************************** */
174 /* Set USB_CONF_MACINTOSH to prefer CDC-ECM+DEBUG enumeration for Mac/Linux
175  * Leave undefined to prefer RNDIS+DEBUG enumeration for Windows/Linux
176  * TODO:Serial port would enumerate in all cases and prevent falling through to
177  * the supported network interface if USB_CONF_MACINTOSH is used with Windows
178  * or vice versa. The Mac configuration is set up to still enumerate as RNDIS-ONLY
179  * on Windows (without the serial port).
180  * At present the Windows configuration will not enumerate on the Mac at all,
181  * since it wants a custom descriptor for USB composite devices.
182  */
183 #define USB_CONF_MACINTOSH 0
184 
185 /* Set USB_CONF_SERIAL to enable the USB serial port that allows control of the
186  * run-time configuration (COMx on Windows, ttyACMx on Linux, tty.usbmodemx on Mac)
187  * Debug printfs will go to this port unless USB_CONF_RS232 is set.
188  */
189 #define USB_CONF_SERIAL 1
190 
191 /* RS232 debugs have less effect on network timing and are less likely
192  * to be dropped due to buffer overflow. Only tx is implemented at present.
193  * The tx pad is the middle one behind the jackdaw leds.
194  * RS232 output will work with or without enabling the USB serial port
195  */
196 #define USB_CONF_RS232 1
197 
198 /* Disable mass storage enumeration for more program space */
199 //#define USB_CONF_STORAGE 1 /* TODO: Mass storage is currently broken */
200 
201 /* ************************************************************************** */
202 //#pragma mark UIP Settings
203 /* ************************************************************************** */
204 /* Network setup. The new NETSTACK interface requires RF230BB (as does ip4) */
205 /* These mostly have no effect when the Jackdaw is a repeater (CONTIKI_NO_NET=1 using fakeuip.c) */
206 
207 #if NETSTACK_CONF_WITH_IPV6
208 #define LINKADDR_CONF_SIZE 8
209 #define UIP_CONF_ICMP6 1
210 #define UIP_CONF_UDP 1
211 #define UIP_CONF_TCP 0
212 #define NETSTACK_CONF_NETWORK sicslowpan_driver
213 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
214 #else
215 /* ip4 should build but is thoroughly untested */
216 #define LINKADDR_CONF_SIZE 2
217 #define NETSTACK_CONF_NETWORK rime_driver
218 #endif /* NETSTACK_CONF_WITH_IPV6 */
219 
220 /* See uip-ds6.h */
221 #define NBR_TABLE_CONF_MAX_NEIGHBORS 2
222 #define UIP_CONF_DS6_DEFRT_NBU 2
223 #define UIP_CONF_DS6_PREFIX_NBU 3
224 #define UIP_CONF_MAX_ROUTES 2
225 #define UIP_CONF_DS6_ADDR_NBU 3
226 #define UIP_CONF_DS6_MADDR_NBU 0
227 #define UIP_CONF_DS6_AADDR_NBU 0
228 
229 #define UIP_CONF_LL_802154 1
230 #define UIP_CONF_LLH_LEN 14
231 #define UIP_CONF_BUFSIZE UIP_LINK_MTU + UIP_LLH_LEN + 4 /* +4 for vlan on macosx */
232 
233 /* 10 bytes per stateful address context - see sicslowpan.c */
234 /* Default is 1 context with prefix fd00::/64 */
235 /* These must agree with all the other nodes or there will be a failure to communicate! */
236 #//define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 1
237 #define SICSLOWPAN_CONF_ADDR_CONTEXT_0 {addr_contexts[0].prefix[0]=UIP_DS6_DEFAULT_PREFIX_0;addr_contexts[0].prefix[1]=UIP_DS6_DEFAULT_PREFIX_1;}
238 #define SICSLOWPAN_CONF_ADDR_CONTEXT_1 {addr_contexts[1].prefix[0]=0xbb;addr_contexts[1].prefix[1]=0xbb;}
239 #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;}
240 
241 /* 211 bytes per queue buffer */
242 #define QUEUEBUF_CONF_NUM 8
243 
244 /* 54 bytes per queue ref buffer */
245 #define QUEUEBUF_CONF_REF_NUM 2
246 
247 #define UIP_CONF_MAX_CONNECTIONS 1
248 #define UIP_CONF_MAX_LISTENPORTS 1
249 
250 #define UIP_CONF_IP_FORWARD 0
251 #define UIP_CONF_FWCACHE_SIZE 0
252 
253 #define UIP_CONF_IPV6_CHECKS 1
254 #define UIP_CONF_IPV6_QUEUE_PKT 1
255 #define UIP_CONF_IPV6_REASSEMBLY 0
256 
257 #define UIP_CONF_UDP_CHECKSUMS 1
258 #define UIP_CONF_TCP_SPLIT 0
259 
260 typedef unsigned short uip_stats_t;
261 #define UIP_CONF_STATISTICS 1
262 
263  /* Network setup */
264 #if 1 /* No radio cycling */
265 #define NETSTACK_CONF_MAC nullmac_driver
266 #define NETSTACK_CONF_RDC sicslowmac_driver
267 #define NETSTACK_CONF_FRAMER framer_802154
268 #define NETSTACK_CONF_RADIO rf230_driver
269 #define CHANNEL_802_15_4 26
270 /* If nonzero an interval of 256 seconds is used at present */
271 #define RADIO_CONF_CALIBRATE_INTERVAL 256
272 /* AUTOACK receive mode gives better rssi measurements, even if ACK is never requested */
273 #define RF230_CONF_AUTOACK 1
274 /* 1 + Number of auto retry attempts 0-15 (0 implies don't use extended TX_ARET_ON mode with CCA) */
275 #define RF230_CONF_FRAME_RETRIES 2
276 /* CCA theshold energy -91 to -61 dBm (default -77). Set this smaller than the expected minimum rssi to avoid packet collisions */
277 /* The Jackdaw menu 'm' command is helpful for determining the smallest ever received rssi */
278 #define RF230_CONF_CCA_THRES -85
279 /* Number of CSMA attempts 0-7. 802.15.4 2003 standard max is 5. */
280 #define RF230_CONF_CSMA_RETRIES 5
281 /* Allow sneeze command from jackdaw menu. Useful for testing CCA on other radios */
282 /* During sneezing, any access to an RF230 register will hang the MCU and cause a watchdog reset */
283 /* The host interface, jackdaw menu and rf230_send routines are temporarily disabled to prevent this */
284 /* But some calls from an internal uip stack might get through, e.g. from CCA or low power protocols, */
285 /* as temporarily disabling all the possible accesses would add considerable complication to the radio driver! */
286 #define RF230_CONF_SNEEZER 1
287 /* Allow 6loWPAN fragmentation (more efficient for large payloads over a reliable channel) */
288 #define SICSLOWPAN_CONF_FRAG 1
289 /* Timeout for fragment reassembly. A reissued browser GET will also cancel reassembly, typically in 2-3 seconds */
290 #define SICSLOWPAN_CONF_MAXAGE 3
291 /* Allow sneeze command from jackdaw menu */
292 #define RF230_CONF_SNEEZE 1
293 
294 #elif 1 /* Contiki-mac radio cycling */
295 #define NETSTACK_CONF_MAC nullmac_driver
296 //#define NETSTACK_CONF_MAC csma_driver
297 #define NETSTACK_CONF_RDC contikimac_driver
298 
299 #if NETSTACK_CONF_WITH_IPV6
300 #define NETSTACK_CONF_FRAMER framer802154
301 #else /* NETSTACK_CONF_WITH_IPV6 */
302 #define NETSTACK_CONF_FRAMER contikimac_framer
303 #endif /* NETSTACK_CONF_WITH_IPV6 */
304 
305 #define NETSTACK_CONF_RADIO rf230_driver
306 #define CHANNEL_802_15_4 26
307 /* Enable extended mode with autoack, but no csma/autoretry */
308 #define RF230_CONF_FRAME_RETRIES 1
309 #define RF230_CONF_AUTOACK 1
310 #define RF230_CONF_CSMA_RETRIES 0
311 #define SICSLOWPAN_CONF_FRAG 1
312 #define SICSLOWPAN_CONF_MAXAGE 3
313 /* Jackdaw has USB power, can be always listening */
314 #define CONTIKIMAC_CONF_RADIO_ALWAYS_ON 1
315 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
316 
317 /* Contiki-mac is a memory hog */
318 #define PROCESS_CONF_NO_PROCESS_NAMES 1
319 #undef QUEUEBUF_CONF_NUM
320 #define QUEUEBUF_CONF_NUM 2
321 #undef QUEUEBUF_CONF_REF_NUM
322 #define QUEUEBUF_CONF_REF_NUM 1
323 #undef UIP_CONF_TCP_SPLIT
324 #define UIP_CONF_TCP_SPLIT 0
325 #undef UIP_CONF_STATISTICS
326 #define UIP_CONF_STATISTICS 0
327 #undef UIP_CONF_IPV6_QUEUE_PKT
328 #define UIP_CONF_IPV6_QUEUE_PKT 0
329 #define UIP_CONF_PINGADDRCONF 0
330 #define UIP_CONF_LOGGING 0
331 #undef UIP_CONF_MAX_CONNECTIONS
332 #define UIP_CONF_MAX_CONNECTIONS 2
333 #undef UIP_CONF_MAX_LISTENPORTS
334 #define UIP_CONF_MAX_LISTENPORTS 2
335 #define UIP_CONF_UDP_CONNS 6
336 
337 #elif 1 /* cx-mac radio cycling */
338 #define NETSTACK_CONF_MAC nullmac_driver
339 //#define NETSTACK_CONF_MAC csma_driver
340 #define NETSTACK_CONF_RDC cxmac_driver
341 #define NETSTACK_CONF_FRAMER framer_802154
342 #define NETSTACK_CONF_RADIO rf230_driver
343 #define CHANNEL_802_15_4 26
344 #define RF230_CONF_AUTOACK 1
345 #define RF230_CONF_FRAME_RETRIES 1
346 #define SICSLOWPAN_CONF_FRAG 1
347 #define SICSLOWPAN_CONF_MAXAGE 3
348 #define CXMAC_CONF_ANNOUNCEMENTS 0
349 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
350 #undef QUEUEBUF_CONF_NUM
351 #define QUEUEBUF_CONF_NUM 8
352 #undef NBR_TABLE_CONF_MAX_NEIGHBORS
353 #define NBR_TABLE_CONF_MAX_NEIGHBORS 5
354 #undef UIP_CONF_MAX_ROUTES
355 #define UIP_CONF_MAX_ROUTES 5
356 
357 #else
358 #error Network configuration not specified!
359 #endif /* Network setup */
360 
361 
362 /* ************************************************************************** */
363 //#pragma mark RPL Settings
364 /* ************************************************************************** */
365 
366 #if UIP_CONF_IPV6_RPL
367 
368 /* Not completely working yet. Works on Ubuntu after $ifconfig usb0 -arp to drop the neighbor solitications */
369 /* Dropping the NS on other OSs is more complicated, see http://www.sics.se/~adam/wiki/index.php/Jackdaw_RNDIS_RPL_border_router */
370 
371 /* RPL requires the uip stack. Change #CONTIKI_NO_NET=1 to NETSTACK_CONF_WITH_IPV6=1 in the examples makefile,
372  or include the needed source files in /plaftorm/avr-ravenusb/Makefile.avr-ravenusb */
373 /* For the present the buffer_length calcs in rpl-icmp6.c will need adjustment by the length difference
374  between 6lowpan (0) and ethernet (14) link-layer headers:
375  // buffer_length = uip_len - uip_l2_l3_icmp_hdr_len;
376  buffer_length = uip_len - uip_l2_l3_icmp_hdr_len + UIP_LLH_LEN; //Add jackdaw ethernet header
377  */
378 
379 /* Define MAX_*X_POWER to reduce tx power and ignore weak rx packets for testing a miniature multihop network.
380  * Leave undefined for full power and sensitivity.
381  * tx=0 (3dbm, default) to 15 (-17.2dbm)
382  * RF230_CONF_AUTOACK sets the extended mode using the energy-detect register with rx=0 (-91dBm) to 84 (-7dBm)
383  * else the rssi register is used having range 0 (91dBm) to 28 (-10dBm)
384  * For simplicity RF230_MIN_RX_POWER is based on the energy-detect value and divided by 3 when autoack is not set.
385  * On the RF230 a reduced rx power threshold will not prevent autoack if enabled and requested.
386  * These numbers applied to both Raven and Jackdaw give a maximum communication distance of about 15 cm
387  * and a 10 meter range to a full-sensitivity RF230 sniffer.
388 #define RF230_MAX_TX_POWER 15
389 #define RF230_MIN_RX_POWER 30
390  */
391 #define UIP_CONF_ROUTER 1
392 #define UIP_CONF_ND6_SEND_RA 0
393 #define UIP_CONF_ND6_REACHABLE_TIME 600000
394 #define UIP_CONF_ND6_RETRANS_TIMER 10000
395 
396 #ifndef RPL_BORDER_ROUTER
397 #define RPL_BORDER_ROUTER 1
398 #endif
399 #define RPL_CONF_STATS 0
400 #define UIP_CONF_BUFFER_SIZE 1300
401 //#define NBR_TABLE_CONF_MAX_NEIGHBORS 12
402 //#define UIP_CONF_MAX_ROUTES 12
403 
404 #ifdef RPL_BORDER_ROUTER
405 #undef UIP_FALLBACK_INTERFACE
406 #define UIP_FALLBACK_INTERFACE rpl_interface
407 #endif
408 
409 /* Save all the RAM we can */
410 #define PROCESS_CONF_NO_PROCESS_NAMES 1
411 #undef QUEUEBUF_CONF_NUM
412 #define QUEUEBUF_CONF_NUM 2
413 #undef QUEUEBUF_CONF_REF_NUM
414 #define QUEUEBUF_CONF_REF_NUM 1
415 #undef UIP_CONF_TCP_SPLIT
416 #define UIP_CONF_TCP_SPLIT 0
417 #undef UIP_CONF_STATISTICS
418 #define UIP_CONF_STATISTICS 0
419 #undef UIP_CONF_IPV6_QUEUE_PKT
420 #define UIP_CONF_IPV6_QUEUE_PKT 0
421 #define UIP_CONF_PINGADDRCONF 0
422 #define UIP_CONF_LOGGING 0
423 #undef UIP_CONF_MAX_CONNECTIONS
424 #define UIP_CONF_MAX_CONNECTIONS 2
425 #undef UIP_CONF_MAX_LISTENPORTS
426 #define UIP_CONF_MAX_LISTENPORTS 2
427 #define UIP_CONF_UDP_CONNS 6
428 
429 /* Optional, TCP needed to serve the RPL neighbor web page currently hard coded at bbbb::200 */
430 /* The RPL neighbors can also be viewed using the jackdaw menu */
431 /* A small MSS is adequate for the internal jackdaw webserver and RAM is very limited*/
432 #define RPL_HTTPD_SERVER 0
433 #if RPL_HTTPD_SERVER
434 #undef UIP_CONF_TCP
435 #define UIP_CONF_TCP 1
436 #define UIP_CONF_TCP_MSS 48
437 #define UIP_CONF_RECEIVE_WINDOW 48
438 #undef NBR_TABLE_CONF_MAX_NEIGHBORS
439 #define NBR_TABLE_CONF_MAX_NEIGHBORS 5
440 #undef UIP_CONF_MAX_ROUTES
441 #define UIP_CONF_MAX_ROUTES 5
442 #undef UIP_CONF_MAX_CONNECTIONS
443 #define UIP_CONF_MAX_CONNECTIONS 2
444 #endif
445 
446 #define UIP_CONF_ICMP_DEST_UNREACH 1
447 #define UIP_CONF_DHCP_LIGHT
448 #undef UIP_CONF_FWCACHE_SIZE
449 #define UIP_CONF_FWCACHE_SIZE 30
450 #define UIP_CONF_BROADCAST 1
451 //#define UIP_ARCH_IPCHKSUM 1
452 
453 /* Experimental option to pick up a prefix from host interface router advertisements */
454 /* Requires changes in uip6 and uip-nd6.c to pass link-local RA broadcasts */
455 /* If this is zero the prefix will be manually set in contiki-raven-main.c */
456 #define UIP_CONF_ROUTER_RECEIVE_RA 0
457 
458 #endif /* UIP_CONF_IPV6_RPL */
459 
460 /* ************************************************************************** */
461 //#pragma mark Other Settings
462 /* ************************************************************************** */
463 
464 /* Use Atmel 'Route Under MAC', currently just in RF230 sniffer mode! */
465 /* Route-Under-MAC uses 16-bit short addresses */
466 //#define UIP_CONF_USE_RUM 1
467 #if UIP_CONF_USE_RUM
468 #undef UIP_CONF_LL_802154
469 #define UIP_DATA_RUM_OFFSET 5
470 #endif /* UIP_CONF_USE_RUM */
471 
472 #define CCIF
473 #define CLIF
474 
475 #endif /* CONTIKI_CONF_H_ */
void clock_delay_msec(uint16_t howlong)
Delay up to 65535 milliseconds.
Definition: clock.c:260
uint8_t radio_get_trx_state(void)
This function return the Radio Transceivers current state.
Definition: radio.c:764
#define BUSY_TX_ARET
Constant BUSY_TX_ARET for sub-register SR_TRX_STATUS.
void clock_adjust_ticks(clock_time_t howmany)
Adjust the system current clock time.
Definition: clock.c:289
#define BUSY_TX
Constant BUSY_TX for sub-register SR_TRX_STATUS.