Contiki 2.5
contiki-conf.h
1 #ifndef __CONTIKI_CONF_H__
2 #define __CONTIKI_CONF_H__
3 
4 /* DCO speed resynchronization for more robust UART, etc. */
5 #define DCOSYNCH_CONF_ENABLED 1
6 #define DCOSYNCH_CONF_PERIOD 30
7 
8 #define SERIAL_LINE_CONF_BUFSIZE 64
9 
10 #define TIMESYNCH_CONF_ENABLED 0
11 #define PROFILE_CONF_ON 0
12 #define ENERGEST_CONF_ON 1
13 
14 #ifdef __IAR_SYSTEMS_ICC__
15 #define __MSP430F149__ 1
16 #define __MSP430__ 1
17 #define CC_CONF_INLINE
18 #define BV(x) (1 << x)
19 #else
20 #define CC_CONF_INLINE inline
21 #define MSP430_MEMCPY_WORKAROUND 1
22 #endif
23 
24 #define HAVE_STDINT_H
25 #include "msp430def.h"
26 
27 
28 #define PROCESS_CONF_NUMEVENTS 8
29 #define PROCESS_CONF_STATS 0
30 
31 /* CPU target speed in Hz */
32 #define F_CPU 2457600uL
33 
34 /* Our clock resolution, this is the same as Unix HZ. Must be a power
35  of two (see clock.c for details). */
36 #define CLOCK_CONF_SECOND 64UL
37 
38 #define NODE_ID_EEPROM_OFFSET 0x0010 /* - 0x0014 */
39 #define CFS_EEPROM_CONF_OFFSET 0x0040
40 
41 #define CC_CONF_REGISTER_ARGS 1
42 #define CC_CONF_FUNCTION_POINTER_ARGS 1
43 
44 #define CC_CONF_VA_ARGS 1
45 
46 #define CCIF
47 #define CLIF
48 
49 typedef unsigned long clock_time_t;
50 
51 void clock_wait(int ms10);
52 
53 #define LOG_CONF_ENABLED 0
54 
55 #define PACKETBUF_CONF_ATTRS_INLINE 1
56 #define NETSTACK_CONF_RADIO tr1001_driver
57 
58 #if WITH_UIP
59 /* Network setup for IPv4 */
60 
61 #define NETSTACK_CONF_NETWORK uip_driver
62 #define NETSTACK_CONF_MAC nullmac_driver
63 #define NETSTACK_CONF_RDC nullrdc_driver
64 #define NETSTACK_CONF_FRAMER framer_nullmac
65 
66 #define QUEUEBUF_CONF_NUM 0
67 #define QUEUEBUF_CONF_REF_NUM 0
68 #define ROUTE_CONF_ENTRIES 0
69 
70 #else /* WITH_UIP */
71 
72 /* Network setup for non-IPv4 (rime). */
73 
74 #define NETSTACK_CONF_NETWORK rime_driver
75 #define NETSTACK_CONF_MAC nullmac_driver
76 #define NETSTACK_CONF_RDC nullrdc_driver
77 #define NETSTACK_CONF_FRAMER framer_nullmac
78 
79 #define QUEUEBUF_CONF_NUM 1
80 #define QUEUEBUF_CONF_REF_NUM 1
81 #define ROUTE_CONF_ENTRIES 4
82 
83 #endif /* WITH_UIP */
84 
85 /**
86  * The statistics data type.
87  *
88  * This datatype determines how high the statistics counters are able
89  * to count.
90  */
91 typedef unsigned short uip_stats_t;
92 
93 #define UIP_CONF_ICMP_DEST_UNREACH 1
94 
95 #define UIP_CONF_IP_FORWARD 1
96 #define UIP_CONF_DHCP_LIGHT
97 #define UIP_CONF_LLH_LEN 0
98 #define UIP_CONF_BUFFER_SIZE 110
99 #define UIP_CONF_RECEIVE_WINDOW (UIP_CONF_BUFFER_SIZE - 40)
100 #define UIP_CONF_MAX_CONNECTIONS 4
101 #define UIP_CONF_MAX_LISTENPORTS 4
102 #define UIP_CONF_UDP_CONNS 3
103 #define UIP_CONF_FWCACHE_SIZE 1
104 #define UIP_CONF_BROADCAST 1
105 #define UIP_ARCH_IPCHKSUM 1
106 #define UIP_CONF_UDP_CHECKSUMS 1
107 #define UIP_CONF_PINGADDRCONF 0
108 #define UIP_CONF_LOGGING 0
109 #define UIP_CONF_RESOLV_ENTRIES 1
110 
111 #define UIP_CONF_TCP_SPLIT 0
112 
113 #define LOADER_CONF_ARCH "loader/loader-arch.h"
114 
115 #define ELFLOADER_CONF_TEXT_IN_ROM 1
116 #define ELFLOADER_CONF_DATAMEMORY_SIZE 100
117 #define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x1000
118 
119 #define WEBSERVER_CONF_CGI_CONNS 1
120 
121 /* LEDs ports. */
122 #define LEDS_PxDIR P2DIR
123 #define LEDS_PxOUT P2OUT
124 #define LEDS_CONF_RED 0x01
125 #define LEDS_CONF_GREEN 0x02
126 #define LEDS_CONF_YELLOW 0x04
127 
128 #ifdef PROJECT_CONF_H
129 #include PROJECT_CONF_H
130 #endif /* PROJECT_CONF_H */
131 
132 #endif /* __CONTIKI_CONF_H__ */