33 #ifndef CONTIKI_CONF_H_ 34 #define CONTIKI_CONF_H_ 37 #ifdef PROJECT_CONF_PATH 38 #include PROJECT_CONF_PATH 41 #ifdef INCLUDE_SUBPLATFORM_CONF 42 #include "subplatform-conf.h" 45 #define PLATFORM_CONF_PROVIDES_MAIN_LOOP 1 47 #define LOG_CONF_ENABLED 1 51 #define ASSERT_CONF_RETURNS 1 53 #ifndef EEPROM_CONF_SIZE 54 #define EEPROM_CONF_SIZE 1024 57 #define w_memcpy memcpy 59 #ifdef NETSTACK_CONF_H 62 #define NETSTACK__QUOTEME(s) NETSTACK_QUOTEME(s) 63 #define NETSTACK_QUOTEME(s) #s 64 #include NETSTACK__QUOTEME(NETSTACK_CONF_H) 69 #define CSMA_CONF_SEND_SOFT_ACK 1 70 #define CSMA_CONF_ACK_WAIT_TIME RTIMER_SECOND / 500 71 #define CSMA_CONF_AFTER_ACK_DETECTED_WAIT_TIME 0 76 #define NETSTACK_CONF_RADIO cooja_radio_driver 79 #if NETSTACK_CONF_WITH_IPV6 83 #ifndef NETSTACK_MAX_ROUTE_ENTRIES 84 #define NETSTACK_MAX_ROUTE_ENTRIES 300 86 #ifndef NBR_TABLE_CONF_MAX_NEIGHBORS 87 #define NBR_TABLE_CONF_MAX_NEIGHBORS 300 91 #ifndef QUEUEBUF_CONF_NUM 92 #define QUEUEBUF_CONF_NUM 64 95 #ifndef UIP_CONF_IPV6_QUEUE_PKT 96 #define UIP_CONF_IPV6_QUEUE_PKT 1 101 #define CC_CONF_VA_ARGS 1 102 #define CC_CONF_INLINE inline 105 #include <inttypes.h> 106 typedef uint8_t u8_t;
107 typedef uint16_t u16_t;
108 typedef uint32_t u32_t;
109 typedef int32_t s32_t;
111 typedef unsigned short uip_stats_t;
113 #define CLOCK_CONF_SECOND 1000L 114 typedef unsigned long clock_time_t;
117 #define RTIMER_CONF_CLOCK_SIZE 8 120 #define RADIO_PHY_OVERHEAD 3 122 #define RADIO_BYTE_AIR_TIME 32 123 #define RADIO_DELAY_BEFORE_TX 0 124 #define RADIO_DELAY_BEFORE_RX 0 125 #define RADIO_DELAY_BEFORE_DETECT 0 127 #define UIP_ARCH_IPCHKSUM 1 129 #define CFS_CONF_OFFSET_TYPE long 131 #define PLATFORM_CONF_SUPPORTS_STACK_CHECK 0 135 #define GPIO_HAL_CONF_ARCH_HDR_PATH "dev/gpio-hal-arch.h" 136 #define GPIO_HAL_CONF_ARCH_SW_TOGGLE 1 137 #define GPIO_HAL_CONF_PORT_PIN_NUMBERING 0 138 #define GPIO_HAL_CONF_PIN_COUNT 4 141 #define COOJA_LED_GREEN_PIN 0 142 #define COOJA_LED_RED_PIN 1 143 #define COOJA_LED_YELLOW_PIN 2 146 #define COOJA_BTN_PIN 3 148 #define BUTTON_HAL_CONF_DEBOUNCE_DURATION 0 151 #define PLATFORM_HAS_BUTTON 1 152 #define PLATFORM_SUPPORTS_BUTTON_HAL 1 155 #define LEDS_CONF_COUNT 3 156 #define LEDS_CONF_GREEEN 1 157 #define LEDS_CONF_RED 2 158 #define LEDS_CONF_YELLOW 4