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