Go to the documentation of this file.
41 #ifndef __CONTIKI_CONF_H__
42 #define __CONTIKI_CONF_H__
45 #define PLATFORM PLATFORM_AVR
46 #define HARWARE_REVISION ATMEGA128RFA1
48 #define F_CPU 8000000UL
52 typedef int32_t
s32_t;
53 typedef unsigned char u8_t;
54 typedef unsigned short u16_t;
55 typedef unsigned long u32_t;
56 typedef unsigned short clock_time_t;
58 typedef unsigned long off_t;
62 void clock_set_seconds(
unsigned long s);
63 unsigned long clock_seconds(
void);
66 #define INFINITE_TIME 0xffff
69 #define CLOCK_CONF_SECOND 128
72 #define RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME INFINITE_TIME/CLOCK_CONF_SECOND
73 #define COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME INFINITE_TIME/CLOCK_CONF_SECOND
79 #define AVR_CONF_USE32KCRYSTAL 0
83 #define RF230BB_CONF_LEDONPORTE1 1
86 #if RF230BB_CONF_LEDONPORTE1
87 #define SLIP_PORT RS232_PORT_1
89 #define SLIP_PORT RS232_PORT_0
103 #define ENERGEST_CONF_ON 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
128 #define RIMEADDR_CONF_SIZE 2
129 #define NETSTACK_CONF_NETWORK rime_driver
133 #define UIP_CONF_DS6_NBR_NBU 20
134 #define UIP_CONF_DS6_DEFRT_NBU 2
135 #define UIP_CONF_DS6_PREFIX_NBU 3
136 #define UIP_CONF_DS6_ROUTE_NBU 20
137 #define UIP_CONF_DS6_ADDR_NBU 3
138 #define UIP_CONF_DS6_MADDR_NBU 0
139 #define UIP_CONF_DS6_AADDR_NBU 0
141 #define UIP_CONF_LL_802154 1
142 #define UIP_CONF_LLH_LEN 0
147 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 1
148 #define SICSLOWPAN_CONF_ADDR_CONTEXT_0 {addr_contexts[0].prefix[0]=0xaa;addr_contexts[0].prefix[1]=0xaa;}
149 #define SICSLOWPAN_CONF_ADDR_CONTEXT_1 {addr_contexts[1].prefix[0]=0xbb;addr_contexts[1].prefix[1]=0xbb;}
150 #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;}
153 #define QUEUEBUF_CONF_NUM 8
156 #define QUEUEBUF_CONF_REF_NUM 2
168 #define UIP_CONF_MAX_CONNECTIONS 4
171 #define UIP_CONF_MAX_LISTENPORTS 4
174 #define UIP_CONF_UDP_CONNS 10
176 #define UIP_CONF_IP_FORWARD 0
177 #define UIP_CONF_FWCACHE_SIZE 0
179 #define UIP_CONF_IPV6_CHECKS 1
180 #define UIP_CONF_IPV6_QUEUE_PKT 1
181 #define UIP_CONF_IPV6_REASSEMBLY 0
183 #define UIP_CONF_UDP_CHECKSUMS 1
184 #define UIP_CONF_TCP_SPLIT 1
185 #define UIP_CONF_DHCP_LIGHT 1
190 #define NETSTACK_CONF_MAC nullmac_driver
191 #define NETSTACK_CONF_RDC sicslowmac_driver
192 #define NETSTACK_CONF_FRAMER framer_802154
193 #define NETSTACK_CONF_RADIO rf230_driver
194 #define CHANNEL_802_15_4 26
196 #define RF230_CONF_AUTOACK 1
198 #define SICSLOWPAN_CONF_ACK_ALL 0
200 #define RF230_CONF_AUTORETRIES 2
202 #define RF230_CONF_RX_BUFFERS 3
203 #define SICSLOWPAN_CONF_FRAG 1
205 #define SICSLOWPAN_CONF_MAXAGE 3
208 #define UIP_CONF_WAIT_TIMEOUT 20
211 #define NETSTACK_CONF_MAC nullmac_driver
213 #define NETSTACK_CONF_RDC contikimac_driver
214 #define NETSTACK_CONF_FRAMER framer_802154
215 #define NETSTACK_CONF_RADIO rf230_driver
216 #define CHANNEL_802_15_4 26
218 #define RTIMER_CONF_NESTED_INTERRUPTS 1
219 #define RF230_CONF_AUTOACK 1
220 #define RF230_CONF_AUTORETRIES 1
221 #define RF230_CONF_CSMARETRIES 1
222 #define CONTIKIMAC_CONF_RADIO_ALWAYS_ON 0
223 #define SICSLOWPAN_CONF_FRAG 1
224 #define SICSLOWPAN_CONF_MAXAGE 3
225 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
229 #define RF230_CONF_AUTORETRIES 1
230 #if RF230_CONF_AUTORETRIES
231 #define NETSTACK_CONF_MAC nullmac_driver
233 #define NETSTACK_CONF_MAC csma_driver
235 #define NETSTACK_CONF_RDC cxmac_driver
236 #define NETSTACK_CONF_FRAMER framer_802154
237 #define NETSTACK_CONF_RADIO rf230_driver
238 #define CHANNEL_802_15_4 26
239 #define RF230_CONF_AUTOACK 1
240 #define SICSLOWPAN_CONF_FRAG 1
241 #define SICSLOWPAN_CONF_MAXAGE 3
242 #define CXMAC_CONF_ANNOUNCEMENTS 0
243 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
251 #error Network configuration not specified!
255 #define LOG_CONF_ENABLED 1
260 #if UIP_CONF_IPV6_RPL
275 #define UIP_CONF_ROUTER 1
276 #define UIP_CONF_ND6_SEND_RA 0
277 #define UIP_CONF_ND6_REACHABLE_TIME 600000
278 #define UIP_CONF_ND6_RETRANS_TIMER 10000
280 #undef UIP_CONF_UDP_CONNS
281 #define UIP_CONF_UDP_CONNS 12
284 #undef UIP_CONF_FWCACHE_SIZE
285 #define UIP_CONF_FWCACHE_SIZE 30
286 #define UIP_CONF_BROADCAST 1
287 #define UIP_ARCH_IPCHKSUM 1
288 #define UIP_CONF_PINGADDRCONF 0
289 #define UIP_CONF_LOGGING 0
298 #ifdef PROJECT_CONF_H
299 #include PROJECT_CONF_H