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