Contiki 2.6
|
00001 #ifndef __CONTIKI_CONF_H__ 00002 #define __CONTIKI_CONF_H__ 00003 00004 #define PLATFORM_HAS_LEDS 1 00005 #define PLATFORM_HAS_BUTTON 1 00006 #define PLATFORM_HAS_BATTERY 1 00007 00008 /* DCO speed resynchronization for more robust UART, etc. */ 00009 #define DCOSYNCH_CONF_ENABLED 1 00010 #define DCOSYNCH_CONF_PERIOD 30 00011 00012 #define SERIAL_LINE_CONF_BUFSIZE 64 00013 00014 #define TIMESYNCH_CONF_ENABLED 0 00015 #define PROFILE_CONF_ON 0 00016 #define ENERGEST_CONF_ON 1 00017 00018 #define HAVE_STDINT_H 00019 #include "msp430def.h" 00020 00021 00022 #define PROCESS_CONF_NUMEVENTS 8 00023 #define PROCESS_CONF_STATS 0 00024 00025 /* CPU target speed in Hz */ 00026 #define F_CPU 2457600uL 00027 00028 /* Our clock resolution, this is the same as Unix HZ. Must be a power 00029 of two (see clock.c for details). */ 00030 #define CLOCK_CONF_SECOND 64UL 00031 00032 #define NODE_ID_EEPROM_OFFSET 0x0010 /* - 0x0014 */ 00033 #define CFS_EEPROM_CONF_OFFSET 0x0040 00034 00035 #define CC_CONF_REGISTER_ARGS 1 00036 #define CC_CONF_FUNCTION_POINTER_ARGS 1 00037 00038 #define CC_CONF_VA_ARGS 1 00039 00040 #define CCIF 00041 #define CLIF 00042 00043 typedef unsigned long clock_time_t; 00044 00045 #define LOG_CONF_ENABLED 0 00046 00047 #define PACKETBUF_CONF_ATTRS_INLINE 1 00048 #define NETSTACK_CONF_RADIO tr1001_driver 00049 00050 #if WITH_UIP 00051 /* Network setup for IPv4 */ 00052 00053 #define NETSTACK_CONF_NETWORK uip_driver 00054 #define NETSTACK_CONF_MAC nullmac_driver 00055 #define NETSTACK_CONF_RDC nullrdc_driver 00056 #define NETSTACK_CONF_FRAMER framer_nullmac 00057 00058 #define QUEUEBUF_CONF_NUM 0 00059 #define QUEUEBUF_CONF_REF_NUM 0 00060 #define ROUTE_CONF_ENTRIES 0 00061 00062 #else /* WITH_UIP */ 00063 00064 /* Network setup for non-IPv4 (rime). */ 00065 00066 #define NETSTACK_CONF_NETWORK rime_driver 00067 #define NETSTACK_CONF_MAC nullmac_driver 00068 #define NETSTACK_CONF_RDC nullrdc_driver 00069 #define NETSTACK_CONF_FRAMER framer_nullmac 00070 00071 #define QUEUEBUF_CONF_NUM 1 00072 #define QUEUEBUF_CONF_REF_NUM 1 00073 #define ROUTE_CONF_ENTRIES 4 00074 00075 #endif /* WITH_UIP */ 00076 00077 /** 00078 * The statistics data type. 00079 * 00080 * This datatype determines how high the statistics counters are able 00081 * to count. 00082 */ 00083 typedef unsigned short uip_stats_t; 00084 00085 #define UIP_CONF_ICMP_DEST_UNREACH 1 00086 00087 #define UIP_CONF_IP_FORWARD 1 00088 #define UIP_CONF_DHCP_LIGHT 00089 #define UIP_CONF_LLH_LEN 0 00090 #define UIP_CONF_BUFFER_SIZE 110 00091 #define UIP_CONF_RECEIVE_WINDOW (UIP_CONF_BUFFER_SIZE - 40) 00092 #define UIP_CONF_MAX_CONNECTIONS 4 00093 #define UIP_CONF_MAX_LISTENPORTS 4 00094 #define UIP_CONF_UDP_CONNS 3 00095 #define UIP_CONF_FWCACHE_SIZE 1 00096 #define UIP_CONF_BROADCAST 1 00097 #define UIP_ARCH_IPCHKSUM 1 00098 #define UIP_CONF_UDP_CHECKSUMS 1 00099 #define UIP_CONF_PINGADDRCONF 0 00100 #define UIP_CONF_LOGGING 0 00101 #define UIP_CONF_RESOLV_ENTRIES 1 00102 00103 #define UIP_CONF_TCP_SPLIT 0 00104 00105 #define LOADER_CONF_ARCH "loader/loader-arch.h" 00106 00107 #define ELFLOADER_CONF_TEXT_IN_ROM 1 00108 #define ELFLOADER_CONF_DATAMEMORY_SIZE 100 00109 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x1000 00110 00111 #define WEBSERVER_CONF_CGI_CONNS 1 00112 00113 /* LEDs ports. */ 00114 #define LEDS_PxDIR P2DIR 00115 #define LEDS_PxOUT P2OUT 00116 #define LEDS_CONF_RED 0x01 00117 #define LEDS_CONF_GREEN 0x02 00118 #define LEDS_CONF_YELLOW 0x04 00119 00120 #ifdef PROJECT_CONF_H 00121 #include PROJECT_CONF_H 00122 #endif /* PROJECT_CONF_H */ 00123 00124 #endif /* __CONTIKI_CONF_H__ */