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 #ifndef __CONTIKI_CONF_H__
00043 #define __CONTIKI_CONF_H__
00044
00045 #define HAVE_STDINT_H
00046 #include "avrdef.h"
00047
00048 #include "platform-conf.h"
00049
00050 #if WITH_UIP6
00051
00052
00053 #define NETSTACK_CONF_NETWORK sicslowpan_driver
00054 #define NETSTACK_CONF_MAC csma_driver
00055 #define NETSTACK_CONF_RDC nullrdc_driver
00056 #define NETSTACK_CONF_FRAMER framer_802154
00057
00058 #define CC2420_CONF_AUTOACK 1
00059 #define MAC_CONF_CHANNEL_CHECK_RATE 8
00060 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 0
00061 #define CXMAC_CONF_ANNOUNCEMENTS 0
00062
00063 #else
00064
00065
00066
00067 #define NETSTACK_CONF_NETWORK rime_driver
00068 #define NETSTACK_CONF_MAC csma_driver
00069 #define NETSTACK_CONF_RDC cxmac_driver
00070 #define NETSTACK_CONF_FRAMER framer_802154
00071
00072 #define CC2420_CONF_AUTOACK 1
00073 #define MAC_CONF_CHANNEL_CHECK_RATE 8
00074
00075 #define COLLECT_CONF_ANNOUNCEMENTS 1
00076 #define RIME_CONF_NO_POLITE_ANNOUCEMENTS 1
00077 #define CXMAC_CONF_ANNOUNCEMENTS 0
00078 #define CXMAC_CONF_COMPOWER 1
00079 #define CONTIKIMAC_CONF_ANNOUNCEMENTS 0
00080 #define CONTIKIMAC_CONF_COMPOWER 1
00081
00082 #define COLLECT_NEIGHBOR_CONF_MAX_NEIGHBORS 32
00083
00084 #endif
00085
00086 #define PACKETBUF_CONF_ATTRS_INLINE 1
00087
00088 #ifndef RF_CHANNEL
00089 #define RF_CHANNEL 26
00090 #endif
00091
00092 #define CONTIKIMAC_CONF_BROADCAST_RATE_LIMIT 0
00093
00094 #define IEEE802154_CONF_PANID 0xABCD
00095
00096
00097 #define AODV_COMPLIANCE
00098 #define AODV_NUM_RT_ENTRIES 32
00099
00100 #define WITH_ASCII 1
00101
00102 #define PROCESS_CONF_NUMEVENTS 8
00103 #define PROCESS_CONF_STATS 1
00104
00105 #ifdef WITH_UIP6
00106
00107 #define RIMEADDR_CONF_SIZE 8
00108
00109 #define UIP_CONF_LL_802154 1
00110 #define UIP_CONF_LLH_LEN 0
00111
00112 #define UIP_CONF_ROUTER 1
00113 #define UIP_CONF_IPV6_RPL 1
00114
00115
00116 #define UIP_CONF_DS6_NBR_NBU 5
00117 #define UIP_CONF_DS6_ROUTE_NBU 5
00118
00119 #define RPL_CONF_MAX_PARENTS 4
00120 #define NEIGHBOR_CONF_MAX_NEIGHBORS 8
00121
00122 #define UIP_CONF_ND6_SEND_RA 0
00123 #define UIP_CONF_ND6_REACHABLE_TIME 600000
00124 #define UIP_CONF_ND6_RETRANS_TIMER 10000
00125
00126 #define UIP_CONF_IPV6 1
00127 #define UIP_CONF_IPV6_QUEUE_PKT 0
00128 #define UIP_CONF_IPV6_CHECKS 1
00129 #define UIP_CONF_IPV6_REASSEMBLY 0
00130 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
00131 #define UIP_CONF_ND6_MAX_PREFIXES 3
00132 #define UIP_CONF_ND6_MAX_NEIGHBORS 4
00133 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
00134 #define UIP_CONF_IP_FORWARD 0
00135 #define UIP_CONF_BUFFER_SIZE 240
00136
00137 #define SICSLOWPAN_CONF_COMPRESSION_IPV6 0
00138 #define SICSLOWPAN_CONF_COMPRESSION_HC1 1
00139 #define SICSLOWPAN_CONF_COMPRESSION_HC01 2
00140 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
00141 #ifndef SICSLOWPAN_CONF_FRAG
00142 #define SICSLOWPAN_CONF_FRAG 1
00143 #define SICSLOWPAN_CONF_MAXAGE 8
00144 #endif
00145 #define SICSLOWPAN_CONF_CONVENTIONAL_MAC 1
00146 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
00147 #else
00148 #define UIP_CONF_IP_FORWARD 1
00149 #define UIP_CONF_BUFFER_SIZE 128
00150 #endif
00151
00152 #define UIP_CONF_ICMP_DEST_UNREACH 1
00153
00154 #if !WITH_UIP && !WITH_UIP6
00155 #define QUEUEBUF_CONF_NUM 8
00156 #else
00157 #define QUEUEBUF_CONF_NUM 4
00158 #endif
00159
00160 #define TIMESYNCH_CONF_ENABLED 1
00161 #define CC2420_CONF_TIMESTAMPS 1
00162 #define CC2420_CONF_SYMBOL_LOOP_COUNT 500
00163
00164 #define WITH_NULLMAC 0
00165
00166 #define CCIF
00167 #define CLIF
00168
00169
00170 #define PROCESS_CONF_NO_PROCESS_NAMES 1
00171
00172 #define UIP_CONF_ICMP_DEST_UNREACH 1
00173
00174 #define UIP_CONF_DHCP_LIGHT
00175 #define UIP_CONF_LLH_LEN 0
00176 #define UIP_CONF_RECEIVE_WINDOW 48
00177 #define UIP_CONF_TCP_MSS 48
00178 #define UIP_CONF_MAX_CONNECTIONS 4
00179 #define UIP_CONF_MAX_LISTENPORTS 8
00180 #define UIP_CONF_UDP_CONNS 12
00181 #define UIP_CONF_FWCACHE_SIZE 15
00182 #define UIP_CONF_BROADCAST 1
00183
00184 #define UIP_CONF_UDP 1
00185 #define UIP_CONF_UDP_CHECKSUMS 1
00186 #define UIP_CONF_PINGADDRCONF 0
00187 #define UIP_CONF_LOGGING 0
00188
00189 #define UIP_CONF_TCP_SPLIT 0
00190
00191
00192 typedef unsigned short clock_time_t;
00193 typedef unsigned short uip_stats_t;
00194 typedef unsigned long off_t;
00195
00196 void clock_delay(unsigned int us2);
00197 void clock_wait(int ms10);
00198 void clock_set_seconds(unsigned long s);
00199 unsigned long clock_seconds(void);
00200
00201 #endif