Contiki 2.5
contiki-conf.h
1 #ifndef __CONTIKI_CONF_H__
2 #define __CONTIKI_CONF_H__
3 
4 #define CC_CONF_REGISTER_ARGS 1
5 #define CC_CONF_FASTCALL __fastcall
6 #define CC_CONF_INLINE __inline
7 
8 
9 #if _USRDLL
10 #define CCIF __declspec(dllimport)
11 #else /* _USRDLL */
12 #define CCIF __declspec(dllexport)
13 #endif /* _USRDLL */
14 #define CLIF __declspec(dllexport)
15 
16 #ifdef __CYGWIN__
17 int strcasecmp(const char*, const char*);
18 char* strdup(const char*);
19 #else /* __CYGWIN__ */
20 #define HAVE_SNPRINTF
21 #define snprintf _snprintf
22 #define strcasecmp _stricmp
23 #define strdup _strdup
24 #endif /* __CYGWIN__ */
25 
26 
27 #define LOG_CONF_ENABLED 1
28 #include "sys/log.h"
29 CCIF void debug_printf(char *format, ...);
30 
31 
32 #define CLOCK_CONF_SECOND 1000
33 typedef unsigned long clock_time_t;
34 
35 
36 typedef signed char int8_t;
37 typedef unsigned char uint8_t;
38 typedef signed short int16_t;
39 typedef unsigned short uint16_t;
40 typedef signed int int32_t;
41 typedef unsigned int uint32_t;
42 
43 /* These names are deprecated, use C99 names. */
44 typedef unsigned char u8_t;
45 typedef unsigned short u16_t;
46 typedef unsigned long u32_t;
47 typedef long s32_t;
48 
49 typedef unsigned short uip_stats_t;
50 
51 #define UIP_CONF_MAX_CONNECTIONS 40
52 #define UIP_CONF_MAX_LISTENPORTS 40
53 #define UIP_CONF_BUFFER_SIZE 420
54 #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
55 #define UIP_CONF_TCP_SPLIT 1
56 #if UIP_CONF_IPV6
57 #define UIP_CONF_IP_FORWARD 0
58 #define UIP_CONF_DS6_NBR_NBU 100
59 #define UIP_CONF_DS6_DEFRT_NBU 2
60 #define UIP_CONF_DS6_PREFIX_NBU 5
61 #define UIP_CONF_DS6_ROUTE_NBU 100
62 #define UIP_CONF_DS6_ADDR_NBU 10
63 #define UIP_CONF_DS6_MADDR_NBU 0 //VC++ does not allow zero length arrays
64 #define UIP_CONF_DS6_AADDR_NBU 0 //inside a struct
65 #else
66 #define UIP_CONF_IP_FORWARD 1
67 #endif
68 #define UIP_CONF_LOGGING 1
69 #define UIP_CONF_UDP_CHECKSUMS 1
70 
71 
72 #include <ctype.h>
73 #define ctk_arch_isprint isprint
74 
75 #include "ctk/ctk-console.h"
76 
77 #define CH_ULCORNER 0xDA
78 #define CH_URCORNER 0xBF
79 #define CH_LLCORNER 0xC0
80 #define CH_LRCORNER 0xD9
81 #define CH_ENTER '\r'
82 #define CH_DEL '\b'
83 #define CH_CURS_UP -1
84 #define CH_CURS_LEFT -2
85 #define CH_CURS_RIGHT -3
86 #define CH_CURS_DOWN -4
87 
88 #define CTK_CONF_MENU_KEY -5 /* F10 */
89 #define CTK_CONF_WINDOWSWITCH_KEY -6 /* Ctrl-Tab */
90 #define CTK_CONF_WIDGETUP_KEY -7 /* Shift-Tab */
91 #define CTK_CONF_WIDGETDOWN_KEY '\t'
92 #define CTK_CONF_WIDGET_FLAGS 0
93 #define CTK_CONF_SCREENSAVER 0
94 
95 #ifdef PLATFORM_BUILD
96 #define CTK_CONF_MOUSE_SUPPORT 1
97 #define CTK_CONF_WINDOWS 1
98 #define CTK_CONF_WINDOWMOVE 1
99 #define CTK_CONF_WINDOWCLOSE 1
100 #define CTK_CONF_ICONS 1
101 #define CTK_CONF_ICON_BITMAPS 0
102 #define CTK_CONF_ICON_TEXTMAPS 1
103 #define CTK_CONF_MENUS 1
104 #define CTK_CONF_MENUWIDTH 16
105 #define CTK_CONF_MAXMENUITEMS 10
106 #else /* PLATFORM_BUILD */
107 #define CTK_CONF_MOUSE_SUPPORT 1
108 #define CTK_CONF_WINDOWS 0
109 #define CTK_CONF_WINDOWMOVE 0
110 #define CTK_CONF_WINDOWCLOSE 0
111 #define CTK_CONF_ICONS 0
112 #define CTK_CONF_MENUS 0
113 #endif /* PLATFORM_BUILD */
114 
115 #define COLOR_BLACK (0)
116 #define COLOR_BLUE (1)
117 #define COLOR_GRAY (1 | 2 | 4)
118 #define COLOR_CYAN (1 | 2 | 8)
119 #define COLOR_YELLOW (2 | 4 | 8)
120 #define COLOR_WHITE (1 | 2 | 4 | 8)
121 
122 #define BORDERCOLOR COLOR_BLACK
123 #define SCREENCOLOR COLOR_BLACK
124 #define BACKGROUNDCOLOR COLOR_BLACK
125 #define WINDOWCOLOR_FOCUS COLOR_WHITE | COLOR_BLUE * 0x10
126 #define WINDOWCOLOR COLOR_GRAY | COLOR_BLUE * 0x10
127 #define DIALOGCOLOR COLOR_WHITE | COLOR_BLUE * 0x10
128 #define WIDGETCOLOR_HLINK COLOR_CYAN | COLOR_BLUE * 0x10
129 #define WIDGETCOLOR_FWIN COLOR_WHITE | COLOR_BLUE * 0x10
130 #define WIDGETCOLOR COLOR_GRAY | COLOR_BLUE * 0x10
131 #define WIDGETCOLOR_DIALOG COLOR_WHITE | COLOR_BLUE * 0x10
132 #define WIDGETCOLOR_FOCUS COLOR_YELLOW | COLOR_BLUE * 0x10
133 #define MENUCOLOR COLOR_WHITE | COLOR_BLUE * 0x10
134 #define OPENMENUCOLOR COLOR_WHITE | COLOR_BLUE * 0x10
135 #define ACTIVEMENUITEMCOLOR COLOR_YELLOW | COLOR_BLUE * 0x10
136 
137 
138 #ifdef PLATFORM_BUILD
139 #define LOADER_CONF_ARCH "loader/dll-loader.h"
140 #else /* PLATFORM_BUILD */
141 #define LOADER_CONF_ARCH "loader/unload.h"
142 #endif /* PLATFORM_BUILD */
143 
144 #define PROGRAM_HANDLER_CONF_MAX_NUMDSCS 10
145 #define PROGRAM_HANDLER_CONF_QUIT_MENU 1
146 
147 
148 #define EMAIL_CONF_WIDTH 76
149 #define EMAIL_CONF_HEIGHT 30
150 #ifndef PLATFORM_BUILD
151 #define EMAIL_CONF_ERASE 0
152 #endif
153 
154 #define IRC_CONF_WIDTH 78
155 #define IRC_CONF_HEIGHT 30
156 #define IRC_CONF_SYSTEM_STRING "Win32"
157 
158 
159 #define SHELL_CONF_WITH_PROGRAM_HANDLER 1
160 
161 
162 #define SHELL_GUI_CONF_XSIZE 78
163 #define SHELL_GUI_CONF_YSIZE 30
164 
165 
166 #ifdef PLATFORM_BUILD
167 #define TELNETD_CONF_GUI 1
168 #endif /* PLATFORM_BUILD */
169 
170 
171 #ifdef PLATFORM_BUILD
172 #define WWW_CONF_WEBPAGE_WIDTH 76
173 #define WWW_CONF_WEBPAGE_HEIGHT 30
174 #endif /* PLATFORM_BUILD */
175 
176 #endif /* __CONTIKI_CONF_H__ */