Contiki 2.5
contiki-conf.h
1 /*
2  * Copyright (c) 2010, Swedish Institute of Computer Science.
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  */
30 
31 #ifndef CONTIKI_CONF_H
32 #define CONTIKI_CONF_H
33 
34 
35 #include "platform-conf.h"
36 
37 #define XMAC_CONF_COMPOWER 1
38 #define CXMAC_CONF_COMPOWER 1
39 
40 #if WITH_UIP6
41 
42 /* Network setup for IPv6 */
43 #define NETSTACK_CONF_NETWORK sicslowpan_driver
44 #define NETSTACK_CONF_MAC csma_driver
45 #define NETSTACK_CONF_RDC contikimac_driver
46 #define NETSTACK_CONF_RADIO cc2420_driver
47 #define NETSTACK_CONF_FRAMER framer_802154
48 
49 /* Specify a minimum packet size for 6lowpan compression to be
50  enabled. This is needed for ContikiMAC, which needs packets to be
51  larger than a specified size, if no ContikiMAC header should be
52  used. */
53 #define SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 63
54 #define CONTIKIMAC_CONF_WITH_CONTIKIMAC_HEADER 0
55 
56 #define CC2420_CONF_AUTOACK 1
57 #define NETSTACK_RDC_CHANNEL_CHECK_RATE 8
58 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
59 #define CXMAC_CONF_ANNOUNCEMENTS 0
60 #define XMAC_CONF_ANNOUNCEMENTS 0
61 
62 #define QUEUEBUF_CONF_NUM 4
63 
64 
65 #else /* WITH_UIP6 */
66 
67 /* Network setup for non-IPv6 (rime). */
68 
69 #define NETSTACK_CONF_NETWORK rime_driver
70 #define NETSTACK_CONF_MAC csma_driver
71 #define NETSTACK_CONF_RDC contikimac_driver
72 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
73 #define NETSTACK_CONF_FRAMER framer_802154
74 
75 #define CC2420_CONF_AUTOACK 1
76 
77 #define COLLECT_CONF_ANNOUNCEMENTS 1
78 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
79 #define CXMAC_CONF_ANNOUNCEMENTS 0
80 #define XMAC_CONF_ANNOUNCEMENTS 0
81 #define CONTIKIMAC_CONF_ANNOUNCEMENTS 0
82 
83 #define CONTIKIMAC_CONF_COMPOWER 1
84 #define XMAC_CONF_COMPOWER 1
85 #define CXMAC_CONF_COMPOWER 1
86 
87 #define COLLECT_NEIGHBOR_CONF_MAX_NEIGHBORS 32
88 
89 #define QUEUEBUF_CONF_NUM 8
90 
91 #endif /* WITH_UIP6 */
92 
93 #define PACKETBUF_CONF_ATTRS_INLINE 1
94 
95 #ifndef RF_CHANNEL
96 #define RF_CHANNEL 26
97 #endif /* RF_CHANNEL */
98 
99 #define IEEE802154_CONF_PANID 0xABCD
100 
101 #define SHELL_VARS_CONF_RAM_BEGIN 0x1100
102 #define SHELL_VARS_CONF_RAM_END 0x2000
103 
104 
105 #define CFS_CONF_OFFSET_TYPE long
106 
107 #define PROFILE_CONF_ON 0
108 #define ENERGEST_CONF_ON 1
109 
110 #define ELFLOADER_CONF_TEXT_IN_ROM 0
111 #define ELFLOADER_CONF_DATAMEMORY_SIZE 0x400
112 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x800
113 
114 #define AODV_COMPLIANCE
115 #define AODV_NUM_RT_ENTRIES 32
116 
117 #define WITH_ASCII 1
118 
119 #define PROCESS_CONF_NUMEVENTS 8
120 #define PROCESS_CONF_STATS 1
121 /*#define PROCESS_CONF_FASTPOLL 4*/
122 
123 
124 #define UART0_CONF_TX_WITH_INTERRUPT 0 // So far, printfs without interrupt.
125 
126 #ifdef WITH_UIP6
127 
128 #define RIMEADDR_CONF_SIZE 8
129 
130 #define UIP_CONF_LL_802154 1
131 #define UIP_CONF_LLH_LEN 0
132 
133 #define UIP_CONF_ROUTER 1
134 #define UIP_CONF_IPV6_RPL 1
135 
136 /* Handle 10 neighbors */
137 #define UIP_CONF_DS6_NBR_NBU 15
138 /* Handle 10 routes */
139 #define UIP_CONF_DS6_ROUTE_NBU 15
140 
141 #define UIP_CONF_ND6_SEND_RA 0
142 #define UIP_CONF_ND6_REACHABLE_TIME 600000
143 #define UIP_CONF_ND6_RETRANS_TIMER 10000
144 
145 #define UIP_CONF_IPV6 1
146 #define UIP_CONF_IPV6_QUEUE_PKT 0
147 #define UIP_CONF_IPV6_CHECKS 1
148 #define UIP_CONF_IPV6_REASSEMBLY 0
149 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
150 #define UIP_CONF_ND6_MAX_PREFIXES 3
151 #define UIP_CONF_ND6_MAX_NEIGHBORS 4
152 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
153 #define UIP_CONF_IP_FORWARD 0
154 #define UIP_CONF_BUFFER_SIZE 140
155 
156 #define SICSLOWPAN_CONF_COMPRESSION_IPV6 0
157 #define SICSLOWPAN_CONF_COMPRESSION_HC1 1
158 #define SICSLOWPAN_CONF_COMPRESSION_HC01 2
159 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
160 #ifndef SICSLOWPAN_CONF_FRAG
161 #define SICSLOWPAN_CONF_FRAG 1
162 #define SICSLOWPAN_CONF_MAXAGE 8
163 #endif /* SICSLOWPAN_CONF_FRAG */
164 #define SICSLOWPAN_CONF_CONVENTIONAL_MAC 1
165 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
166 #else /* WITH_UIP6 */
167 #define UIP_CONF_IP_FORWARD 1
168 #define UIP_CONF_BUFFER_SIZE 108
169 #endif /* WITH_UIP6 */
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 30
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 
191 #ifdef PROJECT_CONF_H
192 #include PROJECT_CONF_H
193 #endif /* PROJECT_CONF_H */
194 
195 
196 
197 #endif /* CONTIKI_CONF_H */