Contiki 2.6

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