Contiki 2.6
|
00001 #ifndef CONTIKI_CONF_H 00002 #define CONTIKI_CONF_H 00003 00004 #define HAVE_STDINT_H 00005 #include "msp430def.h" 00006 00007 #define WITH_SD 0 00008 00009 #define NETSTACK_CONF_RADIO cc1020_driver 00010 #define NETSTACK_CONF_RDC lpp_driver 00011 #define NETSTACK_CONF_MAC csma_driver 00012 #define NETSTACK_CONF_NETWORK rime_driver 00013 #define NETSTACK_CONF_FRAMER framer_nullmac 00014 00015 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8 00016 00017 #define ENERGEST_CONF_ON 1 00018 00019 #define IRQ_PORT1 0x01 00020 #define IRQ_PORT2 0x02 00021 #define IRQ_ADC 0x03 00022 00023 /* MSP430 information memory */ 00024 #define INFOMEM_START 0x1000 00025 #define INFOMEM_BLOCK_SIZE 128 00026 #define INFOMEM_NODE_ID 0x0000 /* - 0x0004 */ 00027 00028 #define CC_CONF_REGISTER_ARGS 1 00029 #define CC_CONF_FUNCTION_POINTER_ARGS 1 00030 #define CC_CONF_INLINE inline 00031 #define CC_CONF_VA_ARGS 1 00032 00033 #define LPP_CONF_LISTEN_TIME 2 00034 #define LPP_CONF_OFF_TIME (CLOCK_SECOND - (LPP_CONF_LISTEN_TIME)) 00035 #define QUEUEBUF_CONF_NUM 4 00036 00037 00038 #define CCIF 00039 #define CLIF 00040 00041 /* Clear channel assessment timeout for sending with the CC1020 radio. (ms) */ 00042 #define CC1020_CONF_CCA_TIMEOUT 10 00043 00044 /* Clock */ 00045 typedef unsigned clock_time_t; 00046 #define CLOCK_CONF_SECOND 64 00047 #define F_CPU 2457600uL /* CPU target speed in Hz. */ 00048 00049 #define BAUD2UBR(baud) (F_CPU/(baud)) 00050 00051 #include "ctk/ctk-vncarch.h" 00052 00053 #define LOG_CONF_ENABLED 0 00054 00055 /** 00056 * The statistics data type. 00057 * 00058 * This datatype determines how high the statistics counters are able 00059 * to count. 00060 */ 00061 typedef uint16_t uip_stats_t; 00062 00063 typedef int bool; 00064 #define TRUE 1 00065 #define FALSE 0 00066 00067 #define UIP_CONF_ICMP_DEST_UNREACH 1 00068 #define UIP_CONF_DHCP_LIGHT 00069 #define UIP_CONF_LLH_LEN 0 00070 #define UIP_CONF_BUFFER_SIZE 116 00071 #define UIP_CONF_RECEIVE_WINDOW (UIP_CONF_BUFFER_SIZE - 40) 00072 #define UIP_CONF_MAX_CONNECTIONS 4 00073 #define UIP_CONF_MAX_LISTENPORTS 8 00074 #define UIP_CONF_UDP_CONNS 8 00075 #define UIP_CONF_FWCACHE_SIZE 20 00076 #define UIP_CONF_BROADCAST 1 00077 #define UIP_ARCH_IPCHKSUM 1 00078 #define UIP_CONF_UDP_CHECKSUMS 1 00079 #define UIP_CONF_PINGADDRCONF 0 00080 #define UIP_CONF_LOGGING 0 00081 00082 #define LOADER_CONF_ARCH "loader/loader-arch.h" 00083 00084 #define ELFLOADER_CONF_DATAMEMORY_SIZE 100 00085 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x1000 00086 00087 /* LEDs ports MSB430 */ 00088 #define LEDS_PxDIR P5DIR 00089 #define LEDS_PxOUT P5OUT 00090 #define LEDS_CONF_RED 0x80 00091 #define LEDS_CONF_GREEN 0x00 00092 #define LEDS_CONF_YELLOW 0x00 00093 00094 #endif /* !CONTIKI_CONF_H */