33 #ifndef CONTIKI_CONF_H_
34 #define CONTIKI_CONF_H_
37 #ifndef WIN32_LEAN_AND_MEAN
38 #include <sys/select.h>
41 struct select_callback {
42 int (* set_fd)(fd_set *fdr, fd_set *fdw);
43 void (* handle_fd)(fd_set *fdr, fd_set *fdw);
45 int select_set_callback(
int fd,
const struct select_callback *callback);
47 #define CC_CONF_REGISTER_ARGS 1
48 #define CC_CONF_FUNCTION_POINTER_ARGS 1
49 #define CC_CONF_FASTCALL
50 #define CC_CONF_VA_ARGS 1
53 #ifndef EEPROM_CONF_SIZE
54 #define EEPROM_CONF_SIZE 1024
62 typedef uint16_t u16_t;
63 typedef uint32_t u32_t;
64 typedef int32_t s32_t;
66 typedef unsigned short uip_stats_t;
68 #define UIP_CONF_UDP 1
69 #define UIP_CONF_MAX_CONNECTIONS 40
70 #define UIP_CONF_MAX_LISTENPORTS 40
71 #define UIP_CONF_BUFFER_SIZE 420
72 #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
73 #define UIP_CONF_TCP 1
74 #define UIP_CONF_TCP_SPLIT 0
75 #define UIP_CONF_LOGGING 0
76 #define UIP_CONF_UDP_CHECKSUMS 1
78 #ifndef NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE
79 #define NETSTACK_CONF_RDC_CHANNEL_CHECK_RATE 8
84 #define LINKADDR_CONF_SIZE 8
86 #ifndef NETSTACK_CONF_MAC
87 #define NETSTACK_CONF_MAC nullmac_driver
90 #ifndef NETSTACK_CONF_RDC
91 #define NETSTACK_CONF_RDC nullrdc_driver
94 #ifndef NETSTACK_CONF_RADIO
95 #define NETSTACK_CONF_RADIO nullradio_driver
98 #ifndef NETSTACK_CONF_FRAMER
99 #define NETSTACK_CONF_FRAMER framer_802154
102 #define NETSTACK_CONF_NETWORK sicslowpan_driver
104 #define UIP_CONF_ROUTER 1
105 #ifndef UIP_CONF_IPV6_RPL
106 #define UIP_CONF_IPV6_RPL 1
109 #define SICSLOWPAN_CONF_COMPRESSION_IPV6 0
110 #define SICSLOWPAN_CONF_COMPRESSION_HC1 1
111 #define SICSLOWPAN_CONF_COMPRESSION_HC01 2
112 #define SICSLOWPAN_CONF_COMPRESSION SICSLOWPAN_COMPRESSION_HC06
113 #ifndef SICSLOWPAN_CONF_FRAG
114 #define SICSLOWPAN_CONF_FRAG 1
115 #define SICSLOWPAN_CONF_MAXAGE 8
117 #define SICSLOWPAN_CONF_CONVENTIONAL_MAC 1
118 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS 2
119 #ifndef SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS
120 #define SICSLOWPAN_CONF_MAX_MAC_TRANSMISSIONS 5
123 #define UIP_CONF_IPV6_CHECKS 1
124 #define UIP_CONF_IPV6_QUEUE_PKT 1
125 #define UIP_CONF_IPV6_REASSEMBLY 0
126 #define UIP_CONF_NETIF_MAX_ADDRESSES 3
127 #define UIP_CONF_ND6_MAX_PREFIXES 3
128 #define UIP_CONF_ND6_MAX_DEFROUTERS 2
129 #define UIP_CONF_ICMP6 1
132 #ifndef NBR_TABLE_CONF_MAX_NEIGHBORS
133 #define NBR_TABLE_CONF_MAX_NEIGHBORS 30
135 #ifndef UIP_CONF_MAX_ROUTES
136 #define UIP_CONF_MAX_ROUTES 30
139 #define UIP_CONF_ND6_SEND_RA 0
140 #define UIP_CONF_ND6_REACHABLE_TIME 600000
141 #define UIP_CONF_ND6_RETRANS_TIMER 10000
143 #define UIP_CONF_IP_FORWARD 0
144 #ifndef UIP_CONF_BUFFER_SIZE
145 #define UIP_CONF_BUFFER_SIZE 240
149 #define UIP_CONF_LLH_LEN 0
150 #define UIP_CONF_LL_802154 1
152 #define UIP_CONF_ICMP_DEST_UNREACH 1
154 #define UIP_CONF_DHCP_LIGHT
155 #define UIP_CONF_RECEIVE_WINDOW 48
156 #define UIP_CONF_TCP_MSS 48
157 #define UIP_CONF_UDP_CONNS 12
158 #define UIP_CONF_FWCACHE_SIZE 30
159 #define UIP_CONF_BROADCAST 1
160 #define UIP_ARCH_IPCHKSUM 1
161 #define UIP_CONF_UDP 1
162 #define UIP_CONF_UDP_CHECKSUMS 1
163 #define UIP_CONF_PINGADDRCONF 0
164 #define UIP_CONF_LOGGING 0
171 #define ctk_arch_isprint isprint
173 #include "ctk/ctk-curses.h"
175 #define CH_ULCORNER -10
176 #define CH_URCORNER -11
177 #define CH_LLCORNER -12
178 #define CH_LRCORNER -13
179 #define CH_ENTER '\n'
181 #define CH_CURS_UP -1
182 #define CH_CURS_LEFT -2
183 #define CH_CURS_RIGHT -3
184 #define CH_CURS_DOWN -4
186 #define CTK_CONF_MENU_KEY -5
187 #define CTK_CONF_WINDOWSWITCH_KEY -6
188 #define CTK_CONF_WIDGETUP_KEY -7
189 #define CTK_CONF_WIDGETDOWN_KEY '\t'
190 #define CTK_CONF_WIDGET_FLAGS 0
191 #define CTK_CONF_SCREENSAVER 1
193 #ifdef PLATFORM_BUILD
194 #define CTK_CONF_MOUSE_SUPPORT 1
195 #define CTK_CONF_WINDOWS 1
196 #define CTK_CONF_WINDOWMOVE 1
197 #define CTK_CONF_WINDOWCLOSE 1
198 #define CTK_CONF_ICONS 1
199 #define CTK_CONF_ICON_BITMAPS 0
200 #define CTK_CONF_ICON_TEXTMAPS 1
201 #define CTK_CONF_MENUS 1
202 #define CTK_CONF_MENUWIDTH 16
203 #define CTK_CONF_MAXMENUITEMS 10
205 #define CTK_CONF_MOUSE_SUPPORT 1
206 #define CTK_CONF_WINDOWS 0
207 #define CTK_CONF_WINDOWMOVE 0
208 #define CTK_CONF_WINDOWCLOSE 0
209 #define CTK_CONF_ICONS 0
210 #define CTK_CONF_MENUS 0
214 #define CTK_COLOR_BLACK 0
215 #define CTK_COLOR_RED 1
216 #define CTK_COLOR_GREEN 2
217 #define CTK_COLOR_YELLOW 3
218 #define CTK_COLOR_BLUE 4
219 #define CTK_COLOR_MAGENTA 5
220 #define CTK_COLOR_CYAN 6
221 #define CTK_COLOR_WHITE 7
224 #define COLOR_BG CTK_COLOR_BLUE
226 #define BORDERCOLOR CTK_COLOR_BLACK
227 #define SCREENCOLOR CTK_COLOR_BLACK
228 #define BACKGROUNDCOLOR CTK_COLOR_BLACK
229 #define WINDOWCOLOR_FOCUS CTK_COLOR_WHITE | COLOR_BG * 0x10
230 #define WINDOWCOLOR CTK_COLOR_CYAN | COLOR_BG * 0x10
231 #define DIALOGCOLOR CTK_COLOR_WHITE | COLOR_BG * 0x10
232 #define WIDGETCOLOR_HLINK CTK_COLOR_CYAN | COLOR_BG * 0x10
233 #define WIDGETCOLOR_FWIN CTK_COLOR_WHITE | COLOR_BG * 0x10
234 #define WIDGETCOLOR CTK_COLOR_CYAN | COLOR_BG * 0x10
235 #define WIDGETCOLOR_DIALOG CTK_COLOR_WHITE | COLOR_BG * 0x10
236 #define WIDGETCOLOR_FOCUS CTK_COLOR_YELLOW | COLOR_BG * 0x10
237 #define MENUCOLOR CTK_COLOR_WHITE | COLOR_BG * 0x10
238 #define OPENMENUCOLOR CTK_COLOR_WHITE | COLOR_BG * 0x10
239 #define ACTIVEMENUITEMCOLOR CTK_COLOR_YELLOW | COLOR_BG * 0x10
242 typedef unsigned long clock_time_t;
244 #define CLOCK_CONF_SECOND 1000
246 #define LOG_CONF_ENABLED 1
248 #define PROGRAM_HANDLER_CONF_MAX_NUMDSCS 10
249 #define PROGRAM_HANDLER_CONF_QUIT_MENU 1
251 #define EMAIL_CONF_WIDTH 78
252 #define EMAIL_CONF_HEIGHT 17
253 #ifndef PLATFORM_BUILD
254 #define EMAIL_CONF_ERASE 0
257 #define IRC_CONF_WIDTH 78
258 #define IRC_CONF_HEIGHT 17
259 #define IRC_CONF_SYSTEM_STRING "*nix"
261 #define SHELL_CONF_WITH_PROGRAM_HANDLER 1
263 #define SHELL_GUI_CONF_XSIZE 78
264 #define SHELL_GUI_CONF_YSIZE 17
266 #ifdef PLATFORM_BUILD
267 #define TELNETD_CONF_GUI 1
270 #ifdef PLATFORM_BUILD
271 #define WWW_CONF_WEBPAGE_WIDTH 78
272 #define WWW_CONF_WEBPAGE_HEIGHT 17
276 int strcasecmp(
const char*,
const char*);
280 #ifdef PROJECT_CONF_H
281 #include PROJECT_CONF_H