Contiki 2.5
contiki-conf.h
1 /* -*- C -*- */
2 /* @(#)$Id: contiki-conf.h,v 1.91 2011/01/09 21:04:14 adamdunkels Exp $ */
3 
4 #ifndef CONTIKI_CONF_H
5 #define CONTIKI_CONF_H
6 
7 
8 #ifdef PROJECT_CONF_H
9 #include "project-conf.h"
10 #endif /* PROJECT_CONF_H */
11 
12  #include "platform-conf.h"
13 
14 
15 #if !WITH_DTN
16  #ifndef NETSTACK_CONF_MAC
17  #define NETSTACK_CONF_MAC csma_driver
18  //#define NETSTACK_CONF_MAC nullmac_driver
19  #endif /* NETSTACK_CONF_MAC */
20 
21  #ifndef NETSTACK_CONF_RDC
22 // #define NETSTACK_CONF_RDC contikimac_driver
23  #define NETSTACK_CONF_RDC nullrdc_driver
24  #endif /* NETSTACK_CONF_RDC */
25 #endif
26 
27 #ifndef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
28 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
29 #endif /* NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE */
30 
31 #ifndef NETSTACK_CONF_RADIO
32 #define NETSTACK_CONF_RADIO cc2420_driver
33 #endif /* NETSTACK_CONF_RADIO */
34 
35 #ifndef NETSTACK_CONF_FRAMER
36 #define NETSTACK_CONF_FRAMER framer_802154
37 #endif /* NETSTACK_CONF_FRAMER */
38 
39 #ifndef CC2420_CONF_AUTOACK
40 #define CC2420_CONF_AUTOACK 1
41 #endif /* CC2420_CONF_AUTOACK */
42 
43 
44 #if WITH_UIP6
45 /* Network setup for IPv6 */
46 #define NETSTACK_CONF_NETWORK sicslowpan_driver
47 
48 /* Specify a minimum packet size for 6lowpan compression to be
49  enabled. This is needed for ContikiMAC, which needs packets to be
50  larger than a specified size, if no ContikiMAC header should be
51  used. */
52 #define SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 63
53 #define CONTIKIMAC_CONF_WITH_CONTIKIMAC_HEADER 0
54 
55 #define CXMAC_CONF_ANNOUNCEMENTS 0
56 #define XMAC_CONF_ANNOUNCEMENTS 0
57 
58 #ifndef QUEUEBUF_CONF_NUM
59 #define QUEUEBUF_CONF_NUM 8
60 #endif
61 
62 #elif WITH_DTN /* WITH_UIP6 */
63 
64 
65  #ifndef NETSTACK_CONF_MAC
66  #define NETSTACK_CONF_MAC nullmac_driver
67 // #define NETSTACK_CONF_MAC csma_driver
68  #endif /* NETSTACK_CONF_MAC */
69 
70  #define RF_CHANNEL 23
71  #define NETSTACK_CONF_NETWORK dtn_network_driver
72  #define NETSTACK_CONF_RDC nullrdc_driver
73  #ifndef QUEUEBUF_CONF_NUM
74 #define QUEUEBUF_CONF_NUM 8
75 #endif
76 
77 
78 #else /* WITH_UIP6 */
79 
80 /* Network setup for non-IPv6 (rime). */
81 
82 #define NETSTACK_CONF_NETWORK rime_driver
83 
84 #define COLLECT_CONF_ANNOUNCEMENTS 1
85 #define CXMAC_CONF_ANNOUNCEMENTS 0
86 #define XMAC_CONF_ANNOUNCEMENTS 0
87 #define CONTIKIMAC_CONF_ANNOUNCEMENTS 0
88 
89 #define CONTIKIMAC_CONF_COMPOWER 1
90 #define XMAC_CONF_COMPOWER 1
91 #define CXMAC_CONF_COMPOWER 1
92 
93 #ifndef COLLECT_NEIGHBOR_CONF_MAX_COLLECT_NEIGHBORS
94 #define COLLECT_NEIGHBOR_CONF_MAX_COLLECT_NEIGHBORS 32
95 #endif /* COLLECT_NEIGHBOR_CONF_MAX_COLLECT_NEIGHBORS */
96 
97 #ifndef QUEUEBUF_CONF_NUM
98 #define QUEUEBUF_CONF_NUM 16
99 #endif /* QUEUEBUF_CONF_NUM */
100 
101 #ifndef TIMESYNCH_CONF_ENABLED
102 #define TIMESYNCH_CONF_ENABLED 0
103 #endif /* TIMESYNCH_CONF_ENABLED */
104 
105 #if TIMESYNCH_CONF_ENABLED
106 /* CC2420 SDF timestamps must be on if timesynch is enabled. */
107 #undef CC2420_CONF_SFD_TIMESTAMPS
108 #define CC2420_CONF_SFD_TIMESTAMPS 1
109 #endif /* TIMESYNCH_CONF_ENABLED */
110 
111 #endif /* WITH_UIP6 */
112 
113 #define PACKETBUF_CONF_ATTRS_INLINE 1
114 
115 #ifndef RF_CHANNEL
116 #define RF_CHANNEL 23
117 #endif /* RF_CHANNEL */
118 
119 #define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0
120 
121 #define IEEE802154_CONF_PANID 0xABCD
122 
123 #define SHELL_VARS_CONF_RAM_BEGIN 0x1100
124 #define SHELL_VARS_CONF_RAM_END 0x2000
125 
126 #define PROFILE_CONF_ON 0
127 #ifndef ENERGEST_CONF_ON
128 #define ENERGEST_CONF_ON 1
129 #endif /* ENERGEST_CONF_ON */
130 
131 #define ELFLOADER_CONF_TEXT_IN_ROM 0
132 #ifndef ELFLOADER_CONF_DATAMEMORY_SIZE
133 #define ELFLOADER_CONF_DATAMEMORY_SIZE 0x400
134 #endif /* ELFLOADER_CONF_DATAMEMORY_SIZE */
135 #ifndef ELFLOADER_CONF_TEXTMEMORY_SIZE
136 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x800
137 #endif /* ELFLOADER_CONF_TEXTMEMORY_SIZE */
138 
139 
140 #define AODV_COMPLIANCE
141 #define AODV_NUM_RT_ENTRIES 32
142 
143 #define WITH_ASCII 1
144 
145 #define PROCESS_CONF_NUMEVENTS 12
146 #define PROCESS_CONF_STATS 1
147 /*#define PROCESS_CONF_FASTPOLL 4*/
148 
149 #ifdef WITH_UIP6
150 
151 #define RIMEADDR_CONF_SIZE 8
152 
153 #define UIP_CONF_LL_802154 1
154 #define UIP_CONF_LLH_LEN 0
155 
156 #define UIP_CONF_ROUTER 1
157 #ifndef UIP_CONF_IPV6_RPL
158 #define UIP_CONF_IPV6_RPL 1
159 #endif /* UIP_CONF_IPV6_RPL */
160 
161 /* configure number of neighbors and routes */
162 #ifndef UIP_CONF_DS6_NBR_NBU
163 #define UIP_CONF_DS6_NBR_NBU 30
164 #endif /* UIP_CONF_DS6_NBR_NBU */
165 #ifndef UIP_CONF_DS6_ROUTE_NBU
166 #define UIP_CONF_DS6_ROUTE_NBU 30
167 #endif /* UIP_CONF_DS6_ROUTE_NBU */
168 
169 #define UIP_CONF_ND6_SEND_RA 0
170 #define UIP_CONF_ND6_REACHABLE_TIME 600000
171 #define UIP_CONF_ND6_RETRANS_TIMER 10000
172 
173 #define UIP_CONF_IPV6 1
174 #ifndef UIP_CONF_IPV6_QUEUE_PKT
175 #define UIP_CONF_IPV6_QUEUE_PKT 0
176 #endif /* UIP_CONF_IPV6_QUEUE_PKT */
177 #define UIP_CONF_IPV6_CHECKS 1
178 #define UIP_CONF_IPV6_REASSEMBLY 0
179 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
180 #define UIP_CONF_ND6_MAX_PREFIXES 3
181 #define UIP_CONF_ND6_MAX_NEIGHBORS 4
182 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
183 #define UIP_CONF_IP_FORWARD 0
184 #ifndef UIP_CONF_BUFFER_SIZE
185 #define UIP_CONF_BUFFER_SIZE 240
186 #endif
187 
188 #define SICSLOWPAN_CONF_COMPRESSION_IPV6 0
189 #define SICSLOWPAN_CONF_COMPRESSION_HC1 1
190 #define SICSLOWPAN_CONF_COMPRESSION_HC01 2
191 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
192 #ifndef SICSLOWPAN_CONF_FRAG
193 #define SICSLOWPAN_CONF_FRAG 1
194 #define SICSLOWPAN_CONF_MAXAGE 8
195 #endif /* SICSLOWPAN_CONF_FRAG */
196 #define SICSLOWPAN_CONF_CONVENTIONAL_MAC 1
197 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
198 #ifndef SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS
199 #define SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS 5
200 #endif /* SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS */
201 #else /* WITH_UIP6 */
202 #define UIP_CONF_IP_FORWARD 1
203 #define UIP_CONF_BUFFER_SIZE 108
204 #endif /* WITH_UIP6 */
205 
206 #define UIP_CONF_ICMP_DEST_UNREACH 1
207 
208 #define UIP_CONF_DHCP_LIGHT
209 #define UIP_CONF_LLH_LEN 0
210 #ifndef UIP_CONF_RECEIVE_WINDOW
211 #define UIP_CONF_RECEIVE_WINDOW 48
212 #endif
213 #ifndef UIP_CONF_TCP_MSS
214 #define UIP_CONF_TCP_MSS 48
215 #endif
216 #define UIP_CONF_MAX_CONNECTIONS 4
217 #define UIP_CONF_MAX_LISTENPORTS 8
218 #define UIP_CONF_UDP_CONNS 12
219 #define UIP_CONF_FWCACHE_SIZE 30
220 #define UIP_CONF_BROADCAST 1
221 #define UIP_ARCH_IPCHKSUM 1
222 #define UIP_CONF_UDP 1
223 #define UIP_CONF_UDP_CHECKSUMS 1
224 #define UIP_CONF_PINGADDRCONF 0
225 #define UIP_CONF_LOGGING 0
226 
227 #define UIP_CONF_TCP_SPLIT 0
228 
229 
230 
231 /* include the project config */
232 /* PROJECT_CONF_H might be defined in the project Makefile */
233 #ifdef PROJECT_CONF_H
234 #include PROJECT_CONF_H
235 #endif /* PROJECT_CONF_H */
236 
237 
238 #endif /* CONTIKI_CONF_H */