contiki-conf.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #ifndef __CONTIKI_CONF_H__
00044 #define __CONTIKI_CONF_H__
00045
00046
00047 #define PLATFORM PLATFORM_AVR
00048 #define RAVEN_REVISION RAVEN_D
00049 #ifndef F_CPU
00050 #define F_CPU 8000000UL
00051 #endif
00052 #include <stdint.h>
00053
00054 typedef int32_t s32_t;
00055 typedef unsigned char u8_t;
00056 typedef unsigned short u16_t;
00057 typedef unsigned long u32_t;
00058 typedef unsigned short clock_time_t;
00059 typedef unsigned short uip_stats_t;
00060 typedef unsigned long off_t;
00061
00062 void clock_delay(unsigned int us2);
00063 void clock_wait(int ms10);
00064 void clock_set_seconds(unsigned long s);
00065 unsigned long clock_seconds(void);
00066
00067
00068 #define INFINITE_TIME 0xffff
00069
00070
00071 #define CLOCK_CONF_SECOND 125
00072
00073
00074 #define RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_CONF_SECOND * 524UL
00075 #define COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_CONF_SECOND * 524UL
00076
00077
00078
00079 #define AVR_CONF_USE32KCRYSTAL 0
00080
00081
00082 #define SLIP_PORT RS232_PORT_0
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092 #if RF230BB
00093 #undef PACKETBUF_CONF_HDR_SIZE //Use the packetbuf default for header size
00094 #else
00095 #define PACKETBUF_CONF_HDR_SIZE 0 //RF230 combined driver/mac handles headers internally
00096 #endif
00097
00098 #if UIP_CONF_IPV6
00099 #define RIMEADDR_CONF_SIZE 8
00100 #define UIP_CONF_ICMP6 1
00101 #define UIP_CONF_UDP 1
00102 #define UIP_CONF_TCP 1
00103 #define UIP_CONF_IPV6_RPL 1
00104 #define NETSTACK_CONF_NETWORK sicslowpan_driver
00105 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
00106 #else
00107
00108 #define RIMEADDR_CONF_SIZE 2
00109 #define NETSTACK_CONF_NETWORK rime_driver
00110 #endif
00111
00112
00113 #define UIP_CONF_DS6_NBR_NBU 20
00114 #define UIP_CONF_DS6_DEFRT_NBU 2
00115 #define UIP_CONF_DS6_PREFIX_NBU 3
00116 #define UIP_CONF_DS6_ROUTE_NBU 20
00117 #define UIP_CONF_DS6_ADDR_NBU 3
00118 #define UIP_CONF_DS6_MADDR_NBU 0
00119 #define UIP_CONF_DS6_AADDR_NBU 0
00120
00121 #define UIP_CONF_LL_802154 1
00122 #define UIP_CONF_LLH_LEN 0
00123
00124
00125
00126
00127 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 1
00128 #define SICSLOWPAN_CONF_ADDR_CONTEXT_0 {addr_contexts[0].prefix[0]=0xaa;addr_contexts[0].prefix[1]=0xaa;}
00129 #define SICSLOWPAN_CONF_ADDR_CONTEXT_1 {addr_contexts[1].prefix[0]=0xbb;addr_contexts[1].prefix[1]=0xbb;}
00130 #define SICSLOWPAN_CONF_ADDR_CONTEXT_2 {addr_contexts[2].prefix[0]=0x20;addr_contexts[2].prefix[1]=0x01;addr_contexts[2].prefix[2]=0x49;addr_contexts[2].prefix[3]=0x78,addr_contexts[2].prefix[4]=0x1d;addr_contexts[2].prefix[5]=0xb1;}
00131
00132
00133 #define QUEUEBUF_CONF_NUM 8
00134
00135
00136 #define QUEUEBUF_CONF_REF_NUM 2
00137
00138
00139
00140
00141
00142
00143
00144
00145 #define UIP_CONF_MAX_CONNECTIONS 1
00146
00147
00148 #define UIP_CONF_MAX_LISTENPORTS 1
00149
00150
00151 #define UIP_CONF_UDP_CONNS 10
00152
00153 #define UIP_CONF_IP_FORWARD 0
00154 #define UIP_CONF_FWCACHE_SIZE 0
00155
00156 #define UIP_CONF_IPV6_CHECKS 1
00157 #define UIP_CONF_IPV6_QUEUE_PKT 1
00158 #define UIP_CONF_IPV6_REASSEMBLY 0
00159
00160 #define UIP_CONF_UDP_CHECKSUMS 1
00161 #define UIP_CONF_TCP_SPLIT 1
00162 #define UIP_CONF_DHCP_LIGHT 1
00163
00164
00165 #if 1
00166
00167 #define NETSTACK_CONF_MAC nullmac_driver
00168 #define NETSTACK_CONF_RDC sicslowmac_driver
00169 #define NETSTACK_CONF_FRAMER framer_802154
00170 #define NETSTACK_CONF_RADIO rf230_driver
00171 #define CHANNEL_802_15_4 26
00172
00173 #define RF230_CONF_AUTOACK 1
00174
00175 #define SICSLOWPAN_CONF_ACK_ALL 0
00176
00177 #define RF230_CONF_AUTORETRIES 2
00178
00179
00180 #define RF230_CONF_CCA_THRES -85
00181
00182
00183 #define SICSLOWPAN_CONF_FRAG 1
00184
00185 #define SICSLOWPAN_CONF_MAXAGE 3
00186
00187 #define UIP_CONF_WAIT_TIMEOUT 5
00188
00189 #elif 1
00190
00191 #define NETSTACK_CONF_MAC csma_driver
00192 #define NETSTACK_CONF_RDC contikimac_driver
00193 #define NETSTACK_CONF_FRAMER framer_802154
00194 #define NETSTACK_CONF_RADIO rf230_driver
00195 #define CHANNEL_802_15_4 26
00196 #define RF230_CONF_AUTOACK 0
00197 #define RF230_CONF_AUTORETRIES 0
00198 #define SICSLOWPAN_CONF_FRAG 1
00199 #define SICSLOWPAN_CONF_MAXAGE 3
00200 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
00201
00202 #elif 1
00203
00204 #define RF230_CONF_AUTORETRIES 1
00205 #if RF230_CONF_AUTORETRIES
00206 #define NETSTACK_CONF_MAC nullmac_driver
00207 #else
00208 #define NETSTACK_CONF_MAC csma_driver
00209 #endif
00210 #define NETSTACK_CONF_RDC cxmac_driver
00211 #define NETSTACK_CONF_FRAMER framer_802154
00212 #define NETSTACK_CONF_RADIO rf230_driver
00213 #define CHANNEL_802_15_4 26
00214 #define RF230_CONF_AUTOACK 1
00215 #define SICSLOWPAN_CONF_FRAG 1
00216 #define SICSLOWPAN_CONF_MAXAGE 3
00217 #define CXMAC_CONF_ANNOUNCEMENTS 0
00218 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
00219
00220
00221
00222
00223
00224
00225 #else
00226 #error Network configuration not specified!
00227 #endif
00228
00229
00230 #define LOG_CONF_ENABLED 1
00231
00232
00233
00234
00235 #if UIP_CONF_IPV6_RPL
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250 #define UIP_CONF_ROUTER 1
00251 #define UIP_CONF_ND6_SEND_RA 0
00252 #define UIP_CONF_ND6_REACHABLE_TIME 600000
00253 #define UIP_CONF_ND6_RETRANS_TIMER 10000
00254
00255 #undef UIP_CONF_UDP_CONNS
00256 #define UIP_CONF_UDP_CONNS 12
00257 #undef UIP_CONF_FWCACHE_SIZE
00258 #define UIP_CONF_FWCACHE_SIZE 30
00259 #define UIP_CONF_BROADCAST 1
00260 #define UIP_ARCH_IPCHKSUM 1
00261 #define UIP_CONF_PINGADDRCONF 0
00262 #define UIP_CONF_LOGGING 0
00263
00264 #endif
00265
00266 #define CCIF
00267 #define CLIF
00268
00269 #endif