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