1 #ifndef __CONTIKI_CONF_H__
2 #define __CONTIKI_CONF_H__
4 #define CC_CONF_REGISTER_ARGS 1
5 #define CC_CONF_FASTCALL __fastcall
6 #define CC_CONF_INLINE __inline
10 #define CCIF __declspec(dllimport)
12 #define CCIF __declspec(dllexport)
14 #define CLIF __declspec(dllexport)
17 int strcasecmp(
const char*,
const char*);
18 char* strdup(
const char*);
21 #define snprintf _snprintf
22 #define strcasecmp _stricmp
23 #define strdup _strdup
27 #define LOG_CONF_ENABLED 1
29 CCIF
void debug_printf(
char *format, ...);
32 #define CLOCK_CONF_SECOND 1000
33 typedef unsigned long clock_time_t;
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;
44 typedef unsigned char u8_t;
45 typedef unsigned short u16_t;
46 typedef unsigned long u32_t;
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
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
66 #define UIP_CONF_IP_FORWARD 1
68 #define UIP_CONF_LOGGING 1
69 #define UIP_CONF_UDP_CHECKSUMS 1
73 #define ctk_arch_isprint isprint
75 #include "ctk/ctk-console.h"
77 #define CH_ULCORNER 0xDA
78 #define CH_URCORNER 0xBF
79 #define CH_LLCORNER 0xC0
80 #define CH_LRCORNER 0xD9
84 #define CH_CURS_LEFT -2
85 #define CH_CURS_RIGHT -3
86 #define CH_CURS_DOWN -4
88 #define CTK_CONF_MENU_KEY -5
89 #define CTK_CONF_WINDOWSWITCH_KEY -6
90 #define CTK_CONF_WIDGETUP_KEY -7
91 #define CTK_CONF_WIDGETDOWN_KEY '\t'
92 #define CTK_CONF_WIDGET_FLAGS 0
93 #define CTK_CONF_SCREENSAVER 0
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
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
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)
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
138 #ifdef PLATFORM_BUILD
139 #define LOADER_CONF_ARCH "loader/dll-loader.h"
141 #define LOADER_CONF_ARCH "loader/unload.h"
144 #define PROGRAM_HANDLER_CONF_MAX_NUMDSCS 10
145 #define PROGRAM_HANDLER_CONF_QUIT_MENU 1
148 #define EMAIL_CONF_WIDTH 76
149 #define EMAIL_CONF_HEIGHT 30
150 #ifndef PLATFORM_BUILD
151 #define EMAIL_CONF_ERASE 0
154 #define IRC_CONF_WIDTH 78
155 #define IRC_CONF_HEIGHT 30
156 #define IRC_CONF_SYSTEM_STRING "Win32"
159 #define SHELL_CONF_WITH_PROGRAM_HANDLER 1
162 #define SHELL_GUI_CONF_XSIZE 78
163 #define SHELL_GUI_CONF_YSIZE 30
166 #ifdef PLATFORM_BUILD
167 #define TELNETD_CONF_GUI 1
171 #ifdef PLATFORM_BUILD
172 #define WWW_CONF_WEBPAGE_WIDTH 76
173 #define WWW_CONF_WEBPAGE_HEIGHT 30