Go to the documentation of this file.
43 #ifndef __CONTIKI_CONF_H__
44 #define __CONTIKI_CONF_H__
47 #define PLATFORM PLATFORM_AVR
49 #define INGA_REVISION INGA_12
53 typedef int32_t
s32_t;
54 typedef unsigned char u8_t;
55 typedef unsigned short u16_t;
56 typedef unsigned long u32_t;
60 void clock_set_seconds(
unsigned long s);
61 unsigned long clock_seconds(
void);
64 #define INFINITE_TIME 0xffff
67 #define RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME INFINITE_TIME/CLOCK_CONF_SECOND
68 #define COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME INFINITE_TIME/CLOCK_CONF_SECOND
72 #define AVR_CONF_USE32KCRYSTAL 1
81 #define SLIP_PORT RS232_PORT_0
98 #define ENERGEST_CONF_ON 0
102 #define CONTIKI_CONF_SETTINGS_MANAGER 1
113 #undef PACKETBUF_CONF_HDR_SIZE //Use the packetbuf default for header size
115 #define PACKETBUF_CONF_HDR_SIZE 0 //RF230 combined driver/mac handles headers internally
119 #define RIMEADDR_CONF_SIZE 8
120 #define UIP_CONF_ICMP6 1
121 #define UIP_CONF_UDP 1
122 #define UIP_CONF_TCP 1
124 #define NETSTACK_CONF_NETWORK sicslowpan_driver
125 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
130 #define NETSTACK_CONF_NETWORK dtn_network_driver
131 #define RIMEADDR_CONF_SIZE 2
132 #define UIP_CONF_UDP 0
133 #define UIP_CONF_ICMP6 0
134 #define UIP_CONF_UDP 0
135 #define UIP_CONF_TCP 0
136 #define UIP_CONF_BUFFER_SIZE 1
140 #define RIMEADDR_CONF_SIZE 2
141 #define NETSTACK_CONF_NETWORK rime_driver
145 #define UIP_CONF_DS6_NBR_NBU 20
146 #define UIP_CONF_DS6_DEFRT_NBU 2
147 #define UIP_CONF_DS6_PREFIX_NBU 3
148 #define UIP_CONF_DS6_ROUTE_NBU 20
149 #define UIP_CONF_DS6_ADDR_NBU 3
150 #define UIP_CONF_DS6_MADDR_NBU 0
151 #define UIP_CONF_DS6_AADDR_NBU 0
153 #define UIP_CONF_LL_802154 1
154 #define UIP_CONF_LLH_LEN 0
159 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 1
160 #define SICSLOWPAN_CONF_ADDR_CONTEXT_0 {addr_contexts[0].prefix[0]=0xaa;addr_contexts[0].prefix[1]=0xaa;}
161 #define SICSLOWPAN_CONF_ADDR_CONTEXT_1 {addr_contexts[1].prefix[0]=0xbb;addr_contexts[1].prefix[1]=0xbb;}
162 #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;}
165 #define QUEUEBUF_CONF_NUM 8
168 #define QUEUEBUF_CONF_REF_NUM 2
177 #define UIP_CONF_MAX_CONNECTIONS 1
180 #define UIP_CONF_MAX_LISTENPORTS 1
183 #define UIP_CONF_UDP_CONNS 10
185 #define UIP_CONF_IP_FORWARD 0
186 #define UIP_CONF_FWCACHE_SIZE 0
188 #define UIP_CONF_IPV6_CHECKS 1
189 #define UIP_CONF_IPV6_QUEUE_PKT 1
190 #define UIP_CONF_IPV6_REASSEMBLY 0
192 #define UIP_CONF_UDP_CHECKSUMS 1
193 #define UIP_CONF_TCP_SPLIT 1
194 #define UIP_CONF_DHCP_LIGHT 1
198 #define CHANNEL_802_15_4 23
199 #define NETSTACK_CONF_MAC csma_driver
200 #define NETSTACK_CONF_RDC nullrdc_driver
201 #define NETSTACK_CONF_FRAMER framer_802154
202 #define NETSTACK_CONF_RADIO rf230_driver
203 #define RF230_CONF_AUTOACK 1
204 #define SICSLOWPAN_CONF_ACK_ALL 0
205 #define RF230_CONF_AUTORETRIES 2
207 #ifndef QUEUEBUF_CONF_NUM
208 #define QUEUEBUF_CONF_NUM 16
212 #define NETSTACK_CONF_MAC nullmac_driver
213 #define NETSTACK_CONF_RDC nullrdc_driver
214 #define NETSTACK_CONF_FRAMER framer_802154
215 #define NETSTACK_CONF_RADIO rf230_driver
216 #define CHANNEL_802_15_4 26
217 #define RADIO_CONF_CALIBRATE_INTERVAL 256
219 #define RF230_CONF_AUTOACK 1
221 #define SICSLOWPAN_CONF_ACK_ALL 0
223 #define RF230_CONF_AUTORETRIES 3
225 #define RF230_CONF_CSMARETRIES 5
228 #define RF230_CONF_CCA_THRES -85
230 #define SICSLOWPAN_CONF_FRAG 1
232 #define SICSLOWPAN_CONF_MAXAGE 3
234 #define UIP_CONF_WAIT_TIMEOUT 5
237 #define NETSTACK_CONF_MAC nullmac_driver
239 #define NETSTACK_CONF_RDC nullrdc_driver
240 #define NETSTACK_CONF_FRAMER framer_802154
241 #define NETSTACK_CONF_RADIO rf230_driver
242 #define CHANNEL_802_15_4 26
244 #define RTIMER_CONF_NESTED_INTERRUPTS 1
245 #define RF230_CONF_AUTOACK 1
246 #define RF230_CONF_AUTORETRIES 1
247 #define RF230_CONF_CSMARETRIES 1
248 #define CONTIKIMAC_CONF_RADIO_ALWAYS_ON 0
249 #define SICSLOWPAN_CONF_FRAG 1
250 #define SICSLOWPAN_CONF_MAXAGE 3
251 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
255 #define RF230_CONF_AUTORETRIES 1
256 #if RF230_CONF_AUTORETRIES
257 #define NETSTACK_CONF_MAC nullmac_driver
259 #define NETSTACK_CONF_MAC csma_driver
261 #define NETSTACK_CONF_RDC cxmac_driver
262 #define NETSTACK_CONF_FRAMER framer_802154
263 #define NETSTACK_CONF_RADIO rf230_driver
264 #define CHANNEL_802_15_4 26
265 #define RF230_CONF_AUTOACK 1
266 #define SICSLOWPAN_CONF_FRAG 1
267 #define SICSLOWPAN_CONF_MAXAGE 3
268 #define CXMAC_CONF_ANNOUNCEMENTS 0
269 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
277 #error Network configuration not specified!
281 #define LOG_CONF_ENABLED 1
286 #if UIP_CONF_IPV6_RPL
301 #define UIP_CONF_ROUTER 1
302 #define UIP_CONF_ND6_SEND_RA 0
303 #define UIP_CONF_ND6_REACHABLE_TIME 600000
304 #define UIP_CONF_ND6_RETRANS_TIMER 10000
306 #undef UIP_CONF_UDP_CONNS
307 #define UIP_CONF_UDP_CONNS 12
308 #undef UIP_CONF_FWCACHE_SIZE
309 #define UIP_CONF_FWCACHE_SIZE 30
310 #define UIP_CONF_BROADCAST 1
311 #define UIP_ARCH_IPCHKSUM 1
312 #define UIP_CONF_PINGADDRCONF 0
313 #define UIP_CONF_LOGGING 0
322 #ifdef PROJECT_CONF_H
323 #include PROJECT_CONF_H