Contiki 3.x
contiki-conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009, University of Colombo School of Computing
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 MICAz platform.
37  *
38  * \author
39  * Kasun Hewage <kasun.ch@gmail.com>
40  */
41 
42 #ifndef CONTIKI_CONF_H_
43 #define CONTIKI_CONF_H_
44 
45 #define HAVE_STDINT_H
46 #include "avrdef.h"
47 
48 #include "platform-conf.h"
49 
50 
51 #if UIP_CONF_IPV6
52 #define WITH_UIP6 1
53 #endif
54 #if WITH_UIP6
55 /* Network setup for IPv6 */
56 #define NETSTACK_CONF_NETWORK sicslowpan_driver
57 //#define NETSTACK_CONF_MAC csma_driver
58 #define NETSTACK_CONF_MAC nullmac_driver
59 //#define NETSTACK_CONF_RDC nullrdc_driver
60 #define NETSTACK_CONF_RDC sicslowmac_driver
61 #define NETSTACK_CONF_FRAMER framer_802154
62 
63 #define CC2420_CONF_AUTOACK 1
64 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
65 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
66 #define CXMAC_CONF_ANNOUNCEMENTS 0
67 
68 #else /* WITH_UIP6 */
69 
70 /* Network setup for non-IPv6 (rime). */
71 
72 #define NETSTACK_CONF_NETWORK rime_driver
73 #define NETSTACK_CONF_MAC csma_driver
74 #define NETSTACK_CONF_RDC cxmac_driver
75 #define NETSTACK_CONF_FRAMER framer_802154
76 
77 #define CC2420_CONF_AUTOACK 1
78 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
79 
80 #define COLLECT_CONF_ANNOUNCEMENTS 1
81 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 1
82 #define CXMAC_CONF_ANNOUNCEMENTS 0
83 #define CXMAC_CONF_COMPOWER 1
84 #define CONTIKIMAC_CONF_ANNOUNCEMENTS 0
85 #define CONTIKIMAC_CONF_COMPOWER 1
86 
87 #define COLLECT_NBR_TABLE_CONF_MAX_NEIGHBORS 32
88 
89 #endif /* WITH_UIP6 */
90 
91 #define PACKETBUF_CONF_ATTRS_INLINE 1
92 
93 #ifdef RF_CHANNEL
94 #define CC2420_CONF_CHANNEL RF_CHANNEL
95 #endif
96 
97 #ifndef CC2420_CONF_CHANNEL
98 #define CC2420_CONF_CHANNEL 26
99 #endif /* CC2420_CONF_CHANNEL */
100 
101 #ifndef CC2420_CONF_CCA_THRESH
102 #define CC2420_CONF_CCA_THRESH -45
103 #endif /* CC2420_CONF_CCA_THRESH */
104 
105 #define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0
106 
107 #define IEEE802154_CONF_PANID 0xABCD
108 
109 
110 #define AODV_COMPLIANCE
111 #define AODV_NUM_RT_ENTRIES 32
112 
113 #define WITH_ASCII 1
114 
115 #define PROCESS_CONF_NUMEVENTS 8
116 #define PROCESS_CONF_STATS 1
117 
118 #ifdef WITH_UIP6
119 
120 #define LINKADDR_CONF_SIZE 8
121 
122 #define UIP_CONF_LL_802154 1
123 #define UIP_CONF_LLH_LEN 0
124 
125 #define UIP_CONF_ROUTER 0
126 #define UIP_CONF_IPV6_RPL 1
127 
128 /* configure number of neighbors and routes */
129 #define NBR_TABLE_CONF_MAX_NEIGHBORS 5
130 #define UIP_CONF_MAX_ROUTES 5
131 
132 #define RPL_CONF_MAX_PARENTS 4
133 #define NBR_TABLE_CONF_MAX_NEIGHBORS 8
134 
135 #define UIP_CONF_ND6_SEND_RA 0
136 #define UIP_CONF_ND6_REACHABLE_TIME 600000
137 #define UIP_CONF_ND6_RETRANS_TIMER 10000
138 
139 #define UIP_CONF_IPV6 1
140 #define UIP_CONF_IPV6_QUEUE_PKT 0
141 #define UIP_CONF_IPV6_CHECKS 1
142 #define UIP_CONF_IPV6_REASSEMBLY 0
143 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
144 #define UIP_CONF_ND6_MAX_PREFIXES 3
145 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
146 #define UIP_CONF_IP_FORWARD 0
147 #define UIP_CONF_BUFFER_SIZE 240
148 
149 #define SICSLOWPAN_CONF_COMPRESSION_IPV6 0
150 #define SICSLOWPAN_CONF_COMPRESSION_HC1 1
151 #define SICSLOWPAN_CONF_COMPRESSION_HC01 2
152 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
153 #ifndef SICSLOWPAN_CONF_FRAG
154 #define SICSLOWPAN_CONF_FRAG 1
155 #define SICSLOWPAN_CONF_MAXAGE 8
156 #endif /* SICSLOWPAN_CONF_FRAG */
157 #define SICSLOWPAN_CONF_CONVENTIONAL_MAC 1
158 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
159 #else /* WITH_UIP6 */
160 #define UIP_CONF_IP_FORWARD 1
161 #define UIP_CONF_BUFFER_SIZE 128
162 #endif /* WITH_UIP6 */
163 
164 #define UIP_CONF_ICMP_DEST_UNREACH 1
165 
166 #if !WITH_UIP && !WITH_UIP6
167 #define QUEUEBUF_CONF_NUM 8
168 #else
169 #define QUEUEBUF_CONF_NUM 4
170 #endif
171 
172 #define TIMESYNCH_CONF_ENABLED 1
173 #define CC2420_CONF_TIMESTAMPS 1
174 #define CC2420_CONF_SYMBOL_LOOP_COUNT 500
175 
176 #define WITH_NULLMAC 0
177 
178 #define CCIF
179 #define CLIF
180 
181 /* The process names are not used to save RAM */
182 #define PROCESS_CONF_NO_PROCESS_NAMES 1
183 
184 #define UIP_CONF_ICMP_DEST_UNREACH 1
185 
186 #define UIP_CONF_DHCP_LIGHT
187 #define UIP_CONF_LLH_LEN 0
188 #define UIP_CONF_RECEIVE_WINDOW 48
189 #define UIP_CONF_TCP_MSS 48
190 #define UIP_CONF_MAX_CONNECTIONS 4
191 #define UIP_CONF_MAX_LISTENPORTS 8
192 #define UIP_CONF_UDP_CONNS 12
193 #define UIP_CONF_FWCACHE_SIZE 15
194 #define UIP_CONF_BROADCAST 1
195 //#define UIP_ARCH_IPCHKSUM 1
196 #define UIP_CONF_UDP 1
197 #define UIP_CONF_UDP_CHECKSUMS 1
198 #define UIP_CONF_PINGADDRCONF 0
199 #define UIP_CONF_LOGGING 0
200 
201 #define UIP_CONF_TCP_SPLIT 0
202 
203 typedef unsigned short uip_stats_t;
204 typedef unsigned long off_t;
205 
206 #endif /* CONTIKI_CONF_H_ */
A brief description of what this file is