Contiki 3.x
contiki-conf.h
1 /*
2  * Copyright (c) 2012, STMicroelectronics.
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 /*---------------------------------------------------------------------------*/
32 #ifndef __CONTIKI_CONF_H__
33 #define __CONTIKI_CONF_H__
34 /*---------------------------------------------------------------------------*/
35 #include "platform-conf.h"
36 /*---------------------------------------------------------------------------*/
37 #define SLIP_BRIDGE_CONF_NO_PUTCHAR 1
38 
39 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
40 #define NULLRDC_CONF_802154_AUTOACK 0
41 #define NETSTACK_CONF_FRAMER framer_802154
42 #define NETSTACK_CONF_NETWORK sicslowpan_driver
43 
44 #undef NETSTACK_CONF_RDC
45 #define NETSTACK_CONF_RDC nullrdc_driver
46 #define NETSTACK_RDC_HEADER_LEN 0
47 
48 #undef NETSTACK_CONF_MAC
49 #define NETSTACK_CONF_MAC csma_driver
50 #define NETSTACK_MAC_HEADER_LEN 0
51 
52 #define SICSLOWPAN_CONF_MAC_MAX_PAYLOAD \
53  (NETSTACK_RADIO_MAX_PAYLOAD_LEN - NETSTACK_MAC_HEADER_LEN - \
54  NETSTACK_RDC_HEADER_LEN)
55 
56 #define RIMESTATS_CONF_ENABLED 0
57 #define RIMESTATS_CONF_ON 0
58 
59 /* Network setup for IPv6 */
60 #define CXMAC_CONF_ANNOUNCEMENTS 0
61 
62 /* A trick to resolve a compilation error with IAR. */
63 #ifdef __ICCARM__
64 #define UIP_CONF_DS6_AADDR_NBU 1
65 #endif
66 
67 /* radio driver blocks until ACK is received */
68 #define NULLRDC_CONF_ACK_WAIT_TIME (0)
69 #define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0
70 #define IEEE802154_CONF_PANID 0xABCD
71 
72 #define AODV_COMPLIANCE
73 
74 #define WITH_ASCII 1
75 
76 #define PROCESS_CONF_NUMEVENTS 8
77 #define PROCESS_CONF_STATS 1
78 /*#define PROCESS_CONF_FASTPOLL 4*/
79 
80 #define LINKADDR_CONF_SIZE 8
81 
82 #define UIP_CONF_LL_802154 1
83 #define UIP_CONF_LLH_LEN 0
84 
85 #define UIP_CONF_ROUTER 1
86 
87 /* configure number of neighbors and routes */
88 #ifndef UIP_CONF_DS6_ROUTE_NBU
89 #define UIP_CONF_DS6_ROUTE_NBU 30
90 #endif /* UIP_CONF_DS6_ROUTE_NBU */
91 
92 #define UIP_CONF_ND6_SEND_RA 0
93 #define UIP_CONF_ND6_REACHABLE_TIME 600000 /* 90000// 600000 */
94 #define UIP_CONF_ND6_RETRANS_TIMER 10000
95 
96 #define UIP_CONF_IPV6 1
97 #ifndef UIP_CONF_IPV6_QUEUE_PKT
98 #define UIP_CONF_IPV6_QUEUE_PKT 0
99 #endif /* UIP_CONF_IPV6_QUEUE_PKT */
100 #define UIP_CONF_IP_FORWARD 0
101 #ifndef UIP_CONF_BUFFER_SIZE
102 #define UIP_CONF_BUFFER_SIZE 280
103 /* #define UIP_CONF_BUFFER_SIZE 600 */
104 #endif
105 
106 #define SICSLOWPAN_CONF_MAXAGE 4
107 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
108 
109 #define UIP_CONF_ICMP_DEST_UNREACH 1
110 
111 #define UIP_CONF_DHCP_LIGHT
112 #define UIP_CONF_LLH_LEN 0
113 #ifndef UIP_CONF_RECEIVE_WINDOW
114 #define UIP_CONF_RECEIVE_WINDOW 150
115 #endif
116 #ifndef UIP_CONF_TCP_MSS
117 #define UIP_CONF_TCP_MSS UIP_CONF_RECEIVE_WINDOW
118 #endif
119 #define UIP_CONF_MAX_CONNECTIONS 4
120 #define UIP_CONF_MAX_LISTENPORTS 8
121 #define UIP_CONF_UDP_CONNS 12
122 #define UIP_CONF_FWCACHE_SIZE 30
123 #define UIP_CONF_BROADCAST 1
124 #define UIP_ARCH_IPCHKSUM 0
125 #define UIP_CONF_UDP 1
126 #define UIP_CONF_UDP_CHECKSUMS 1
127 #define UIP_CONF_TCP 1
128 /*---------------------------------------------------------------------------*/
129 /* include the project config */
130 /* PROJECT_CONF_H might be defined in the project Makefile */
131 #ifdef PROJECT_CONF_H
132 #include PROJECT_CONF_H
133 #endif /* PROJECT_CONF_H */
134 /*---------------------------------------------------------------------------*/
135 #endif /* CONTIKI_CONF_H */
136 /*---------------------------------------------------------------------------*/
Header file for the stm32nucleo-spirit1 platform configuration.