Go to the documentation of this file.
43 #ifndef __CONTIKI_CONF_H__
44 #define __CONTIKI_CONF_H__
47 #define PLATFORM PLATFORM_AVR
48 #define RAVEN_REVISION RAVEN_D
50 #define F_CPU 8000000UL
54 typedef int32_t
s32_t;
55 typedef unsigned char u8_t;
56 typedef unsigned short u16_t;
57 typedef unsigned long u32_t;
58 typedef unsigned short clock_time_t;
60 typedef unsigned long off_t;
64 void clock_set_seconds(
unsigned long s);
65 unsigned long clock_seconds(
void);
68 #define INFINITE_TIME 0xffff
71 #define CLOCK_CONF_SECOND 128
74 #define RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME INFINITE_TIME/CLOCK_CONF_SECOND
75 #define COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME INFINITE_TIME/CLOCK_CONF_SECOND
79 #define AVR_CONF_USE32KCRYSTAL 1
88 #define SLIP_PORT RS232_PORT_0
105 #define ENERGEST_CONF_ON 0
109 #define CONTIKI_CONF_SETTINGS_MANAGER 1
120 #undef PACKETBUF_CONF_HDR_SIZE //Use the packetbuf default for header size
122 #define PACKETBUF_CONF_HDR_SIZE 0 //RF230 combined driver/mac handles headers internally
126 #define RIMEADDR_CONF_SIZE 8
127 #define UIP_CONF_ICMP6 1
128 #define UIP_CONF_UDP 1
129 #define UIP_CONF_TCP 1
131 #define NETSTACK_CONF_NETWORK sicslowpan_driver
132 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
137 #define NETSTACK_CONF_NETWORK dtn_network_driver
138 #define RIMEADDR_CONF_SIZE 2
144 #define RIMEADDR_CONF_SIZE 2
145 #define NETSTACK_CONF_NETWORK rime_driver
149 #define UIP_CONF_DS6_NBR_NBU 20
150 #define UIP_CONF_DS6_DEFRT_NBU 2
151 #define UIP_CONF_DS6_PREFIX_NBU 3
152 #define UIP_CONF_DS6_ROUTE_NBU 20
153 #define UIP_CONF_DS6_ADDR_NBU 3
154 #define UIP_CONF_DS6_MADDR_NBU 0
155 #define UIP_CONF_DS6_AADDR_NBU 0
157 #define UIP_CONF_LL_802154 1
158 #define UIP_CONF_LLH_LEN 0
163 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 1
164 #define SICSLOWPAN_CONF_ADDR_CONTEXT_0 {addr_contexts[0].prefix[0]=0xaa;addr_contexts[0].prefix[1]=0xaa;}
165 #define SICSLOWPAN_CONF_ADDR_CONTEXT_1 {addr_contexts[1].prefix[0]=0xbb;addr_contexts[1].prefix[1]=0xbb;}
166 #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;}
169 #define QUEUEBUF_CONF_NUM 8
172 #define QUEUEBUF_CONF_REF_NUM 2
181 #define UIP_CONF_MAX_CONNECTIONS 1
184 #define UIP_CONF_MAX_LISTENPORTS 1
187 #define UIP_CONF_UDP_CONNS 10
189 #define UIP_CONF_IP_FORWARD 0
190 #define UIP_CONF_FWCACHE_SIZE 0
192 #define UIP_CONF_IPV6_CHECKS 1
193 #define UIP_CONF_IPV6_QUEUE_PKT 1
194 #define UIP_CONF_IPV6_REASSEMBLY 0
196 #define UIP_CONF_UDP_CHECKSUMS 1
197 #define UIP_CONF_TCP_SPLIT 1
198 #define UIP_CONF_DHCP_LIGHT 1
202 #define CHANNEL_802_15_4 24
203 #define NETSTACK_CONF_MAC csma_driver
204 #define NETSTACK_CONF_RDC nullrdc_driver
205 #define NETSTACK_CONF_FRAMER framer_802154
206 #define NETSTACK_CONF_RADIO rf230_driver
207 #define RF230_CONF_AUTOACK 1
208 #define SICSLOWPAN_CONF_ACK_ALL 0
209 #define RF230_CONF_AUTORETRIES 2
210 #ifndef QUEUEBUF_CONF_NUM
211 #define QUEUEBUF_CONF_NUM 16
216 #define NETSTACK_CONF_MAC nullmac_driver
217 #define NETSTACK_CONF_RDC nullrdc_driver
218 #define NETSTACK_CONF_FRAMER framer_802154
219 #define NETSTACK_CONF_RADIO rf230_driver
220 #define CHANNEL_802_15_4 26
221 #define RADIO_CONF_CALIBRATE_INTERVAL 256
223 #define RF230_CONF_AUTOACK 1
225 #define SICSLOWPAN_CONF_ACK_ALL 0
227 #define RF230_CONF_AUTORETRIES 3
229 #define RF230_CONF_CSMARETRIES 5
232 #define RF230_CONF_CCA_THRES -85
234 #define SICSLOWPAN_CONF_FRAG 1
236 #define SICSLOWPAN_CONF_MAXAGE 3
238 #define UIP_CONF_WAIT_TIMEOUT 5
241 #define NETSTACK_CONF_MAC nullmac_driver
243 #define NETSTACK_CONF_RDC contikimac_driver
244 #define NETSTACK_CONF_FRAMER framer_802154
245 #define NETSTACK_CONF_RADIO rf230_driver
246 #define CHANNEL_802_15_4 26
248 #define RTIMER_CONF_NESTED_INTERRUPTS 1
249 #define RF230_CONF_AUTOACK 1
250 #define RF230_CONF_AUTORETRIES 1
251 #define RF230_CONF_CSMARETRIES 1
252 #define CONTIKIMAC_CONF_RADIO_ALWAYS_ON 0
253 #define SICSLOWPAN_CONF_FRAG 1
254 #define SICSLOWPAN_CONF_MAXAGE 3
255 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
259 #define RF230_CONF_AUTORETRIES 1
260 #if RF230_CONF_AUTORETRIES
261 #define NETSTACK_CONF_MAC nullmac_driver
263 #define NETSTACK_CONF_MAC csma_driver
265 #define NETSTACK_CONF_RDC cxmac_driver
266 #define NETSTACK_CONF_FRAMER framer_802154
267 #define NETSTACK_CONF_RADIO rf230_driver
268 #define CHANNEL_802_15_4 24
269 #define RF230_CONF_AUTOACK 1
270 #define SICSLOWPAN_CONF_FRAG 1
271 #define SICSLOWPAN_CONF_MAXAGE 3
272 #define CXMAC_CONF_ANNOUNCEMENTS 0
273 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
281 #error Network configuration not specified!
285 #define LOG_CONF_ENABLED 1
290 #if UIP_CONF_IPV6_RPL
305 #define UIP_CONF_ROUTER 1
306 #define UIP_CONF_ND6_SEND_RA 0
307 #define UIP_CONF_ND6_REACHABLE_TIME 600000
308 #define UIP_CONF_ND6_RETRANS_TIMER 10000
310 #undef UIP_CONF_UDP_CONNS
311 #define UIP_CONF_UDP_CONNS 12
312 #undef UIP_CONF_FWCACHE_SIZE
313 #define UIP_CONF_FWCACHE_SIZE 30
314 #define UIP_CONF_BROADCAST 1
315 #define UIP_ARCH_IPCHKSUM 1
316 #define UIP_CONF_PINGADDRCONF 0
317 #define UIP_CONF_LOGGING 0
326 #ifdef PROJECT_CONF_H
327 #include PROJECT_CONF_H