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 nullmac_driver */
45 /* #define NETSTACK_CONF_RDC sicslowmac_driver */
46 #define NETSTACK_CONF_MAC csma_driver
47 #define NETSTACK_CONF_RDC contikimac_driver
48 #define NETSTACK_CONF_RADIO cc2420_driver
49 #define NETSTACK_CONF_FRAMER framer_802154
50 
51 #define CC2420_CONF_AUTOACK 1
52 #define NETSTACK_RDC_CHANNEL_CHECK_RATE 8
53 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
54 #define CXMAC_CONF_ANNOUNCEMENTS 0
55 #define XMAC_CONF_ANNOUNCEMENTS 0
56 
57 #define QUEUEBUF_CONF_NUM 4
58 
59 #else /* WITH_UIP6 */
60 
61 /* Network setup for non-IPv6 (rime). */
62 
63 #define NETSTACK_CONF_NETWORK rime_driver
64 #define NETSTACK_CONF_MAC csma_driver
65 /* #define NETSTACK_CONF_RDC contikimac_driver */
66 #define NETSTACK_CONF_RDC nullrdc_driver
67 #define NETSTACK_CONF_FRAMER framer_802154
68 
69 #define CC2420_CONF_AUTOACK 0
70 
71 #define COLLECT_CONF_ANNOUNCEMENTS 1
72 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
73 #define CXMAC_CONF_ANNOUNCEMENTS 0
74 #define XMAC_CONF_ANNOUNCEMENTS 0
75 #define CONTIKIMAC_CONF_ANNOUNCEMENTS 0
76 
77 #define CONTIKIMAC_CONF_COMPOWER 1
78 #define XMAC_CONF_COMPOWER 1
79 #define CXMAC_CONF_COMPOWER 1
80 
81 #define COLLECT_NEIGHBOR_CONF_MAX_NEIGHBORS 32
82 
83 #define QUEUEBUF_CONF_NUM 8
84 
85 #endif /* WITH_UIP6 */
86 
87 #define PACKETBUF_CONF_ATTRS_INLINE 1
88 
89 #ifndef RF_CHANNEL
90 #define RF_CHANNEL 26
91 #endif /* RF_CHANNEL */
92 
93 #define IEEE802154_CONF_PANID 0xABCD
94 
95 #define SHELL_VARS_CONF_RAM_BEGIN 0x1100
96 #define SHELL_VARS_CONF_RAM_END 0x2000
97 
98 
99 #define CFS_CONF_OFFSET_TYPE long
100 
101 #define PROFILE_CONF_ON 0
102 #define ENERGEST_CONF_ON 0
103 
104 #define ELFLOADER_CONF_TEXT_IN_ROM 0
105 #define ELFLOADER_CONF_DATAMEMORY_SIZE 0x400
106 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x800
107 
108 #define CCIF
109 #define CLIF
110 
111 #define CC_CONF_INLINE inline
112 
113 #define AODV_COMPLIANCE
114 #define AODV_NUM_RT_ENTRIES 32
115 
116 #define WITH_ASCII 1
117 
118 #define PROCESS_CONF_NUMEVENTS 8
119 #define PROCESS_CONF_STATS 1
120 /*#define PROCESS_CONF_FASTPOLL 4*/
121 
122 
123 #define UART0_CONF_TX_WITH_INTERRUPT 0 // So far, printfs without interrupt.
124 
125 #ifdef WITH_UIP6
126 
127 #define RIMEADDR_CONF_SIZE 8
128 
129 #define UIP_CONF_LL_802154 1
130 #define UIP_CONF_LLH_LEN 0
131 
132 #define UIP_CONF_ROUTER 1
133 #define UIP_CONF_IPV6_RPL 1
134 
135 /* Handle 10 neighbors */
136 #define UIP_CONF_DS6_NBR_NBU 15
137 /* Handle 10 routes */
138 #define UIP_CONF_DS6_ROUTE_NBU 15
139 
140 #define UIP_CONF_ND6_SEND_RA 0
141 #define UIP_CONF_ND6_REACHABLE_TIME 600000
142 #define UIP_CONF_ND6_RETRANS_TIMER 10000
143 
144 #define UIP_CONF_IPV6 1
145 #define UIP_CONF_IPV6_QUEUE_PKT 0
146 #define UIP_CONF_IPV6_CHECKS 1
147 #define UIP_CONF_IPV6_REASSEMBLY 0
148 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
149 #define UIP_CONF_ND6_MAX_PREFIXES 3
150 #define UIP_CONF_ND6_MAX_NEIGHBORS 4
151 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
152 #define UIP_CONF_IP_FORWARD 0
153 #define UIP_CONF_BUFFER_SIZE 140
154 
155 #define SICSLOWPAN_CONF_COMPRESSION_IPV6 0
156 #define SICSLOWPAN_CONF_COMPRESSION_HC1 1
157 #define SICSLOWPAN_CONF_COMPRESSION_HC01 2
158 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
159 #ifndef SICSLOWPAN_CONF_FRAG
160 #define SICSLOWPAN_CONF_FRAG 1
161 #define SICSLOWPAN_CONF_MAXAGE 8
162 #endif /* SICSLOWPAN_CONF_FRAG */
163 #define SICSLOWPAN_CONF_CONVENTIONAL_MAC 1
164 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
165 #else /* WITH_UIP6 */
166 #define UIP_CONF_IP_FORWARD 1
167 #define UIP_CONF_BUFFER_SIZE 108
168 #endif /* WITH_UIP6 */
169 
170 #define UIP_CONF_ICMP_DEST_UNREACH 1
171 
172 #define UIP_CONF_DHCP_LIGHT
173 #define UIP_CONF_LLH_LEN 0
174 #define UIP_CONF_RECEIVE_WINDOW 48
175 #define UIP_CONF_TCP_MSS 48
176 #define UIP_CONF_MAX_CONNECTIONS 4
177 #define UIP_CONF_MAX_LISTENPORTS 8
178 #define UIP_CONF_UDP_CONNS 12
179 #define UIP_CONF_FWCACHE_SIZE 30
180 #define UIP_CONF_BROADCAST 1
181 #define UIP_ARCH_IPCHKSUM 1
182 #define UIP_CONF_UDP 1
183 #define UIP_CONF_UDP_CHECKSUMS 1
184 #define UIP_CONF_PINGADDRCONF 0
185 #define UIP_CONF_LOGGING 0
186 
187 #define UIP_CONF_TCP_SPLIT 0
188 
189 
190 #ifdef PROJECT_CONF_H
191 #include PROJECT_CONF_H
192 #endif /* PROJECT_CONF_H */
193 
194 
195 
196 #endif /* CONTIKI_CONF_H */