Contiki 3.x
contiki-conf.h
Go to the documentation of this file.
1 /*
2  * Contiki SeedEye Platform project
3  *
4  * Copyright (c) 2012,
5  * Scuola Superiore Sant'Anna (http://www.sssup.it) and
6  * Consorzio Nazionale Interuniversitario per le Telecomunicazioni
7  * (http://www.cnit.it).
8  *
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  * 1. Redistributions of source code must retain the above copyright
15  * notice, this list of conditions and the following disclaimer.
16  * 2. Redistributions in binary form must reproduce the above copyright
17  * notice, this list of conditions and the following disclaimer in the
18  * documentation and/or other materials provided with the distribution.
19  * 3. Neither the name of the Institute nor the names of its contributors
20  * may be used to endorse or promote products derived from this software
21  * without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33  * SUCH DAMAGE.
34  *
35  */
36 
37 /**
38  * \file platform/seedeye/contiki-conf.h
39  * \brief Contiki configuration file for the SEEDEYE port.
40  * \author Giovanni Pellerano <giovanni.pellerano@evilaliv3.org>
41  * \date 2012-03-21
42  */
43 
44 #ifndef CONTIKI_CONF_H
45 #define CONTIKI_CONF_H
46 
47 #include <inttypes.h>
48 
49 #include "platform-conf.h"
50 
51 #define CCIF
52 #define CLIF
53 
54 typedef uint8_t u8_t;
55 typedef uint16_t u16_t;
56 typedef uint32_t u32_t;
57 typedef int32_t s32_t;
58 typedef uint16_t uip_stats_t;
59 
60 typedef uint32_t clock_time_t;
61 
62 typedef uint32_t rtimer_clock_t;
63 #define RTIMER_CLOCK_LT(a,b) ((int32_t)((a)-(b)) < 0)
64 
65 #define RF_CHANNEL 13
66 
67 #define PROFILE_CONF_ON 0
68 #ifndef ENERGEST_CONF_ON
69 #define ENERGEST_CONF_ON 1
70 #endif /* ENERGEST_CONF_ON */
71 
72 #ifdef WITH_UIP6
73 #define NETSTACK_CONF_NETWORK sicslowpan_driver
74 #define NETSTACK_CONF_FRAMER framer_802154
75 #define NETSTACK_CONF_MAC nullmac_driver
76 #define NETSTACK_CONF_RDC nullrdc_driver
77 #define NETSTACK_CONF_RADIO mrf24j40_driver
78 #define LINKADDR_CONF_SIZE 8
79 #else
80 #define NETSTACK_CONF_NETWORK rime_driver
81 #define NETSTACK_CONF_FRAMER framer_802154
82 #define NETSTACK_CONF_MAC nullmac_driver
83 #define NETSTACK_CONF_RDC nullrdc_driver
84 #define NETSTACK_CONF_RADIO mrf24j40_driver
85 #define LINKADDR_CONF_SIZE 2
86 #endif
87 
88 #define RDC_CONF_HARDWARE_CSMA 1
89 
90 #ifdef WITH_UIP6
91 #define UIP_CONF_ROUTER 1
92 #ifndef UIP_CONF_IPV6_RPL
93 #define UIP_CONF_IPV6_RPL 1
94 #endif /* UIP_CONF_IPV6_RPL */
95 
96 /* IPv6 configuration options */
97 #define UIP_CONF_IPV6 1
98 #define NBR_TABLE_CONF_MAX_NEIGHBORS 20 /* number of neighbors */
99 #define UIP_CONF_DS6_ROUTE_NBU 20 /* number of routes */
100 #define UIP_CONF_ND6_SEND_RA 0
101 #define UIP_CONF_ND6_REACHABLE_TIME 600000
102 #define UIP_CONF_ND6_RETRANS_TIMER 10000
103 
104 
105 #define UIP_CONF_BUFFER_SIZE 240
106 
107 #ifndef QUEUEBUF_CONF_NUM
108 #define QUEUEBUF_CONF_NUM 16
109 #endif /* QUEUEBUF_CONF_NUM */
110 
111 /* UDP configuration options */
112 #define UIP_CONF_UDP 1
113 #define UIP_CONF_UDP_CHECKSUMS 1
114 #define UIP_CONF_UDP_CONNS 10
115 
116 /* 6lowpan options (for ipv6) */
117 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
118 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
119 #define SICSLOWPAN_CONF_COMPRESSION_THRESHOLD 63
120 #ifndef SICSLOWPAN_CONF_FRAG
121 #define SICSLOWPAN_CONF_FRAG 1
122 #define SICSLOWPAN_CONF_MAXAGE 8
123 #endif /* SICSLOWPAN_CONF_FRAG */
124 
125 /* General configuration options */
126 #define UIP_CONF_STATISTICS 0
127 #define UIP_CONF_LOGGING 0
128 #define UIP_CONF_BROADCAST 1
129 #define UIP_CONF_LLH_LEN 0
130 #define UIP_CONF_LL_802154 1
131 #endif
132 
133 /* include the project config */
134 /* PROJECT_CONF_H might be defined in the project Makefile */
135 #ifdef PROJECT_CONF_H
136 #include PROJECT_CONF_H
137 #endif /* PROJECT_CONF_H */
138 
139 #endif /* CONTIKI_CONF_H */
Platform configuration file for the SEEDEYE port.