contiki-conf.h
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 #ifndef __CONTIKI_CONF_H__
00035 #define __CONTIKI_CONF_H__
00036
00037 #define PROFILE_CONF_ON 0
00038 #define ENERGEST_CONF_ON 0
00039 #define LOG_CONF_ENABLED 1
00040
00041 #define COOJA 1
00042
00043 #if WITH_UIP
00044 #if WITH_UIP6
00045 #error WITH_UIP && WITH_IP6: Bad configuration
00046 #endif
00047 #endif
00048
00049 #ifdef NETSTACK_CONF_H
00050
00051
00052 #define NETSTACK__QUOTEME(s) NETSTACK_QUOTEME(s)
00053 #define NETSTACK_QUOTEME(s) #s
00054 #include NETSTACK__QUOTEME(NETSTACK_CONF_H)
00055
00056 #else
00057
00058
00059 #if WITH_UIP6
00060
00061
00062 #define NETSTACK_CONF_NETWORK uip_driver
00063 #define NETSTACK_CONF_MAC nullmac_driver
00064 #define NETSTACK_CONF_RDC nullrdc_driver
00065 #define NETSTACK_CONF_RADIO cooja_radio_driver
00066 #define UIP_CONF_IPV6 1
00067 #define UIP_CONF_IP_FORWARD 0
00068
00069 #else
00070
00071 #if WITH_UIP
00072
00073
00074 #define NETSTACK_CONF_NETWORK rime_driver
00075 #define NETSTACK_CONF_MAC nullmac_driver
00076 #define NETSTACK_CONF_RDC nullrdc_driver
00077 #define NETSTACK_CONF_RADIO cooja_radio_driver
00078 #define UIP_CONF_IP_FORWARD 1
00079
00080 #else
00081
00082
00083 #define NETSTACK_CONF_NETWORK rime_driver
00084 #define NETSTACK_CONF_MAC nullmac_driver
00085 #define NETSTACK_CONF_RDC nullrdc_driver
00086 #define NETSTACK_CONF_RADIO cooja_radio_driver
00087
00088
00089 #endif
00090 #endif
00091
00092 #endif
00093
00094
00095 #define PACKETBUF_CONF_ATTRS_INLINE 1
00096
00097 #define QUEUEBUF_CONF_NUM 16
00098
00099 #define CC_CONF_REGISTER_ARGS 1
00100 #define CC_CONF_FUNCTION_POINTER_ARGS 1
00101 #define CC_CONF_FASTCALL
00102 #define CC_CONF_VA_ARGS 1
00103 #define CC_CONF_INLINE inline
00104
00105 #define CCIF
00106 #define CLIF
00107
00108 #include <inttypes.h>
00109 typedef uint8_t u8_t;
00110 typedef uint16_t u16_t;
00111 typedef uint32_t u32_t;
00112 typedef int32_t s32_t;
00113 typedef unsigned short uip_stats_t;
00114
00115 #define CLOCK_CONF_SECOND 1000L
00116 typedef unsigned long clock_time_t;
00117 typedef unsigned long rtimer_clock_t;
00118 #define RTIMER_CLOCK_LT(a,b) ((signed long)((a)-(b)) < 0)
00119
00120 #define AODV_COMPLIANCE
00121 #define AODV_NUM_RT_ENTRIES 32
00122
00123 #define WITH_ASCII 1
00124
00125 #define UIP_CONF_MAX_LISTENPORTS 40
00126 #define UIP_CONF_MAX_CONNECTIONS 40
00127 #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
00128 #define UIP_CONF_TCP_SPLIT 0
00129 #define UIP_CONF_LOGGING 0
00130 #define UIP_CONF_UDP_CHECKSUMS 0
00131 #define UIP_CONF_BROADCAST 1
00132
00133 #define UIP_CONF_UDP 1
00134 #define UIP_CONF_TCP 1
00135
00136 #if UIP_CONF_IPV6
00137 #define RIMEADDR_CONF_SIZE 8
00138 #define UIP_CONF_IPV6_QUEUE_PKT 1
00139 #define UIP_CONF_IPV6_CHECKS 1
00140 #define UIP_CONF_IPV6_REASSEMBLY 1
00141 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
00142 #define UIP_CONF_ND6_MAX_PREFIXES 3
00143 #define UIP_CONF_ND6_MAX_NEIGHBORS 4
00144 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
00145 #endif
00146
00147 #define CFS_CONF_OFFSET_TYPE long
00148
00149 #endif