contiki-conf.h
00001
00002
00003
00004 #ifndef CONTIKI_CONF_H
00005 #define CONTIKI_CONF_H
00006
00007
00008 #ifdef PROJECT_CONF_H
00009 #include "project-conf.h"
00010 #endif
00011
00012 #include "platform-conf.h"
00013
00014 #ifndef NETSTACK_CONF_MAC
00015 #define NETSTACK_CONF_MAC csma_driver
00016 #endif
00017
00018 #ifndef NETSTACK_CONF_RDC
00019 #define NETSTACK_CONF_RDC contikimac_driver
00020 #endif
00021
00022 #ifndef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
00023 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
00024 #endif
00025
00026 #ifndef NETSTACK_CONF_RADIO
00027 #define NETSTACK_CONF_RADIO cc2420_driver
00028 #endif
00029
00030 #ifndef NETSTACK_CONF_FRAMER
00031 #define NETSTACK_CONF_FRAMER framer_802154
00032 #endif
00033
00034 #ifndef CC2420_CONF_AUTOACK
00035 #define CC2420_CONF_AUTOACK 1
00036 #endif
00037
00038
00039 #if WITH_UIP6
00040
00041 #define NETSTACK_CONF_NETWORK sicslowpan_driver
00042 #define CXMAC_CONF_ANNOUNCEMENTS 0
00043 #define XMAC_CONF_ANNOUNCEMENTS 0
00044
00045 #ifndef QUEUEBUF_CONF_NUM
00046 #define QUEUEBUF_CONF_NUM 8
00047 #endif
00048
00049 #else
00050
00051
00052
00053 #define NETSTACK_CONF_NETWORK rime_driver
00054
00055 #define COLLECT_CONF_ANNOUNCEMENTS 1
00056 #define CXMAC_CONF_ANNOUNCEMENTS 0
00057 #define XMAC_CONF_ANNOUNCEMENTS 0
00058 #define CONTIKIMAC_CONF_ANNOUNCEMENTS 0
00059
00060 #define CONTIKIMAC_CONF_COMPOWER 1
00061 #define XMAC_CONF_COMPOWER 1
00062 #define CXMAC_CONF_COMPOWER 1
00063
00064 #ifndef COLLECT_NEIGHBOR_CONF_MAX_COLLECT_NEIGHBORS
00065 #define COLLECT_NEIGHBOR_CONF_MAX_COLLECT_NEIGHBORS 32
00066 #endif
00067
00068 #ifndef QUEUEBUF_CONF_NUM
00069 #define QUEUEBUF_CONF_NUM 16
00070 #endif
00071
00072 #ifndef TIMESYNCH_CONF_ENABLED
00073 #define TIMESYNCH_CONF_ENABLED 0
00074 #endif
00075
00076 #if TIMESYNCH_CONF_ENABLED
00077
00078 #undef CC2420_CONF_SFD_TIMESTAMPS
00079 #define CC2420_CONF_SFD_TIMESTAMPS 1
00080 #endif
00081
00082 #endif
00083
00084 #define PACKETBUF_CONF_ATTRS_INLINE 1
00085
00086 #ifndef RF_CHANNEL
00087 #define RF_CHANNEL 26
00088 #endif
00089
00090 #define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0
00091
00092 #define IEEE802154_CONF_PANID 0xABCD
00093
00094 #define SHELL_VARS_CONF_RAM_BEGIN 0x1100
00095 #define SHELL_VARS_CONF_RAM_END 0x2000
00096
00097 #define PROFILE_CONF_ON 0
00098 #ifndef ENERGEST_CONF_ON
00099 #define ENERGEST_CONF_ON 1
00100 #endif
00101
00102 #define ELFLOADER_CONF_TEXT_IN_ROM 0
00103 #ifndef ELFLOADER_CONF_DATAMEMORY_SIZE
00104 #define ELFLOADER_CONF_DATAMEMORY_SIZE 0x400
00105 #endif
00106 #ifndef ELFLOADER_CONF_TEXTMEMORY_SIZE
00107 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x800
00108 #endif
00109
00110
00111 #define AODV_COMPLIANCE
00112 #define AODV_NUM_RT_ENTRIES 32
00113
00114 #define WITH_ASCII 1
00115
00116 #define PROCESS_CONF_NUMEVENTS 8
00117 #define PROCESS_CONF_STATS 1
00118
00119
00120 #ifdef WITH_UIP6
00121
00122 #define RIMEADDR_CONF_SIZE 8
00123
00124 #define UIP_CONF_LL_802154 1
00125 #define UIP_CONF_LLH_LEN 0
00126
00127 #define UIP_CONF_ROUTER 1
00128 #ifndef UIP_CONF_IPV6_RPL
00129 #define UIP_CONF_IPV6_RPL 1
00130 #endif
00131
00132
00133 #ifndef UIP_CONF_DS6_NBR_NBU
00134 #define UIP_CONF_DS6_NBR_NBU 30
00135 #endif
00136 #ifndef UIP_CONF_DS6_ROUTE_NBU
00137 #define UIP_CONF_DS6_ROUTE_NBU 30
00138 #endif
00139
00140 #define UIP_CONF_ND6_SEND_RA 0
00141 #define UIP_CONF_ND6_REACHABLE_TIME 600000
00142 #define UIP_CONF_ND6_RETRANS_TIMER 10000
00143
00144 #define UIP_CONF_IPV6 1
00145 #ifndef UIP_CONF_IPV6_QUEUE_PKT
00146 #define UIP_CONF_IPV6_QUEUE_PKT 0
00147 #endif
00148 #define UIP_CONF_IPV6_CHECKS 1
00149 #define UIP_CONF_IPV6_REASSEMBLY 0
00150 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
00151 #define UIP_CONF_ND6_MAX_PREFIXES 3
00152 #define UIP_CONF_ND6_MAX_NEIGHBORS 4
00153 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
00154 #define UIP_CONF_IP_FORWARD 0
00155 #ifndef UIP_CONF_BUFFER_SIZE
00156 #define UIP_CONF_BUFFER_SIZE 240
00157 #endif
00158
00159 #define SICSLOWPAN_CONF_COMPRESSION_IPV6 0
00160 #define SICSLOWPAN_CONF_COMPRESSION_HC1 1
00161 #define SICSLOWPAN_CONF_COMPRESSION_HC01 2
00162 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
00163 #ifndef SICSLOWPAN_CONF_FRAG
00164 #define SICSLOWPAN_CONF_FRAG 1
00165 #define SICSLOWPAN_CONF_MAXAGE 8
00166 #endif
00167 #define SICSLOWPAN_CONF_CONVENTIONAL_MAC 1
00168 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
00169 #ifndef SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS
00170 #define SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS 5
00171 #endif
00172 #else
00173 #define UIP_CONF_IP_FORWARD 1
00174 #define UIP_CONF_BUFFER_SIZE 108
00175 #endif
00176
00177 #define UIP_CONF_ICMP_DEST_UNREACH 1
00178
00179 #define UIP_CONF_DHCP_LIGHT
00180 #define UIP_CONF_LLH_LEN 0
00181 #ifndef UIP_CONF_RECEIVE_WINDOW
00182 #define UIP_CONF_RECEIVE_WINDOW 48
00183 #endif
00184 #ifndef UIP_CONF_TCP_MSS
00185 #define UIP_CONF_TCP_MSS 48
00186 #endif
00187 #define UIP_CONF_MAX_CONNECTIONS 4
00188 #define UIP_CONF_MAX_LISTENPORTS 8
00189 #define UIP_CONF_UDP_CONNS 12
00190 #define UIP_CONF_FWCACHE_SIZE 30
00191 #define UIP_CONF_BROADCAST 1
00192 #define UIP_ARCH_IPCHKSUM 1
00193 #define UIP_CONF_UDP 1
00194 #define UIP_CONF_UDP_CHECKSUMS 1
00195 #define UIP_CONF_PINGADDRCONF 0
00196 #define UIP_CONF_LOGGING 0
00197
00198 #define UIP_CONF_TCP_SPLIT 0
00199
00200
00201
00202
00203 #endif