contiki-conf.h

00001 /* -*- C -*- */
00002 /* @(#)$Id: contiki-conf.h,v 1.91 2011/01/09 21:04:14 adamdunkels Exp $ */
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 /* PROJECT_CONF_H */
00011 
00012 #include "platform-conf.h"
00013 
00014 #ifndef NETSTACK_CONF_MAC
00015 #define NETSTACK_CONF_MAC     csma_driver
00016 #endif /* NETSTACK_CONF_MAC */
00017 
00018 #ifndef NETSTACK_CONF_RDC
00019 #define NETSTACK_CONF_RDC     contikimac_driver
00020 #endif /* NETSTACK_CONF_RDC */
00021 
00022 #ifndef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
00023 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
00024 #endif /* NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE */
00025 
00026 #ifndef NETSTACK_CONF_RADIO
00027 #define NETSTACK_CONF_RADIO   cc2420_driver
00028 #endif /* NETSTACK_CONF_RADIO */
00029 
00030 #ifndef NETSTACK_CONF_FRAMER
00031 #define NETSTACK_CONF_FRAMER  framer_802154
00032 #endif /* NETSTACK_CONF_FRAMER */
00033 
00034 #ifndef CC2420_CONF_AUTOACK
00035 #define CC2420_CONF_AUTOACK              1
00036 #endif /* CC2420_CONF_AUTOACK */
00037 
00038 
00039 #if WITH_UIP6
00040 /* Network setup for IPv6 */
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 /* WITH_UIP6 */
00050 
00051 /* Network setup for non-IPv6 (rime). */
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 /* COLLECT_NEIGHBOR_CONF_MAX_COLLECT_NEIGHBORS */
00067 
00068 #ifndef QUEUEBUF_CONF_NUM
00069 #define QUEUEBUF_CONF_NUM                16
00070 #endif /* QUEUEBUF_CONF_NUM */
00071 
00072 #ifndef TIMESYNCH_CONF_ENABLED
00073 #define TIMESYNCH_CONF_ENABLED           0
00074 #endif /* TIMESYNCH_CONF_ENABLED */
00075 
00076 #if TIMESYNCH_CONF_ENABLED
00077 /* CC2420 SDF timestamps must be on if timesynch is enabled. */
00078 #undef CC2420_CONF_SFD_TIMESTAMPS
00079 #define CC2420_CONF_SFD_TIMESTAMPS       1
00080 #endif /* TIMESYNCH_CONF_ENABLED */
00081 
00082 #endif /* WITH_UIP6 */
00083 
00084 #define PACKETBUF_CONF_ATTRS_INLINE 1
00085 
00086 #ifndef RF_CHANNEL
00087 #define RF_CHANNEL              26
00088 #endif /* RF_CHANNEL */
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 /* ENERGEST_CONF_ON */
00101 
00102 #define ELFLOADER_CONF_TEXT_IN_ROM 0
00103 #ifndef ELFLOADER_CONF_DATAMEMORY_SIZE
00104 #define ELFLOADER_CONF_DATAMEMORY_SIZE 0x400
00105 #endif /* ELFLOADER_CONF_DATAMEMORY_SIZE */
00106 #ifndef ELFLOADER_CONF_TEXTMEMORY_SIZE
00107 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x800
00108 #endif /* ELFLOADER_CONF_TEXTMEMORY_SIZE */
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 /*#define PROCESS_CONF_FASTPOLL    4*/
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 /* UIP_CONF_IPV6_RPL */
00131 
00132 /* configure number of neighbors and routes */
00133 #ifndef UIP_CONF_DS6_NBR_NBU
00134 #define UIP_CONF_DS6_NBR_NBU     30
00135 #endif /* UIP_CONF_DS6_NBR_NBU */
00136 #ifndef UIP_CONF_DS6_ROUTE_NBU
00137 #define UIP_CONF_DS6_ROUTE_NBU   30
00138 #endif /* UIP_CONF_DS6_ROUTE_NBU */
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 /* UIP_CONF_IPV6_QUEUE_PKT */
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 /* SICSLOWPAN_CONF_FRAG */
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 /* SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS */
00172 #else /* WITH_UIP6 */
00173 #define UIP_CONF_IP_FORWARD      1
00174 #define UIP_CONF_BUFFER_SIZE     108
00175 #endif /* WITH_UIP6 */
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 /* CONTIKI_CONF_H */

Generated on Mon Apr 11 14:23:41 2011 for Contiki 2.5 by  doxygen 1.6.1