33 #ifndef CONTIKI_CONF_H_ 34 #define CONTIKI_CONF_H_ 37 #ifdef PROJECT_CONF_PATH 38 #include PROJECT_CONF_PATH 41 #include "native-def.h" 44 #ifndef WIN32_LEAN_AND_MEAN 45 #include <sys/select.h> 48 struct select_callback {
49 int (* set_fd)(fd_set *fdr, fd_set *fdw);
50 void (* handle_fd)(fd_set *fdr, fd_set *fdw);
52 int select_set_callback(
int fd,
const struct select_callback *callback);
54 #define CC_CONF_REGISTER_ARGS 1 55 #define CC_CONF_FUNCTION_POINTER_ARGS 1 56 #define CC_CONF_VA_ARGS 1 59 #ifndef EEPROM_CONF_SIZE 60 #define EEPROM_CONF_SIZE 1024 63 typedef unsigned int uip_stats_t;
65 #ifndef UIP_CONF_BYTE_ORDER 66 #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN 69 #if NETSTACK_CONF_WITH_IPV6 71 #ifndef NETSTACK_CONF_NETWORK 72 #define NETSTACK_CONF_NETWORK tun6_net_driver 75 #ifndef NETSTACK_CONF_RADIO 76 #define NETSTACK_CONF_RADIO nullradio_driver 80 #define nullradio_driver_max_payload_len ((unsigned short)-1) 82 #define NETSTACK_CONF_LINUXRADIO_DEV "wpan0" 85 #ifndef NETSTACK_MAX_ROUTE_ENTRIES 86 #define NETSTACK_MAX_ROUTE_ENTRIES 300 88 #ifndef NBR_TABLE_CONF_MAX_NEIGHBORS 89 #define NBR_TABLE_CONF_MAX_NEIGHBORS 300 93 #ifndef QUEUEBUF_CONF_NUM 94 #define QUEUEBUF_CONF_NUM 64 97 #define UIP_CONF_IPV6_QUEUE_PKT 1 98 #define UIP_ARCH_IPCHKSUM 1 104 typedef unsigned long clock_time_t;
106 #define CLOCK_CONF_SECOND 1000 108 #define LOG_CONF_ENABLED 1 110 #define PLATFORM_SUPPORTS_BUTTON_HAL 1 113 int strcasecmp(
const char*,
const char*);
115 #define PLATFORM_CONF_PROVIDES_MAIN_LOOP 1 116 #define PLATFORM_CONF_MAIN_ACCEPTS_ARGS 1 117 #define PLATFORM_CONF_SUPPORTS_STACK_CHECK 0