42 #ifndef __CONTIKI_CONF_H__
43 #define __CONTIKI_CONF_H__
49 #include "ctk/ctk_arch.h"
50 #include "strcasecmp.h"
54 typedef unsigned long clock_time_t;
57 #define CLOCK_CONF_SECOND 1024
59 #define rtimer_arch_now() clock_time()
62 #define CFS_RAM_CONF_SIZE 512
65 #define LOG_CONF_ENABLED 0
71 #define LIBCONIO_CONF_ATTRIBUTES_ENABLED
72 #if defined(ARCH_PC6001MK2)
73 #define LIBCONIO_VRAM_ATTR 0x4000
74 #define LIBCONIO_VRAM_CHAR 0x4400
75 #define LIBCONIO_CONF_SCREEN_WIDTH 40
76 #define LIBCONIO_CONF_SCREEN_HEIGHT 20
77 #define LIBCONIO_COLOR_NORMAL 0x0f
78 #define LIBCONIO_COLOR_REVERSED 0x70
79 #elif (defined(ARCH_PC6001) || defined(ARCH_PC6001A)) && defined(MEMORY_16K)
80 #define LIBCONIO_VRAM_ATTR 0xc000
81 #define LIBCONIO_VRAM_CHAR 0xc200
82 #define LIBCONIO_CONF_SCREEN_WIDTH 32
83 #define LIBCONIO_CONF_SCREEN_HEIGHT 16
84 #define LIBCONIO_COLOR_NORMAL 0x20
85 #define LIBCONIO_COLOR_REVERSED 0x21
86 #elif (defined(ARCH_PC6001) || defined(ARCH_PC6001A)) && (defined(MEMORY_32K) || defined(MEMORY_ROM))
87 #define LIBCONIO_VRAM_ATTR 0x8000
88 #define LIBCONIO_VRAM_CHAR 0x8200
89 #define LIBCONIO_CONF_SCREEN_WIDTH 32
90 #define LIBCONIO_CONF_SCREEN_HEIGHT 16
91 #define LIBCONIO_COLOR_NORMAL 0x20
92 #define LIBCONIO_COLOR_REVERSED 0x21
94 #error Specify appropriate ARCH & MEMORY combination
98 #define SCREENCOLOR 0x20
99 #define BORDERCOLOR 0x20
100 #define WIDGETCOLOR 0x20
101 #define WIDGETCOLOR_FWIN 0x20
102 #define BACKGROUNDCOLOR 0x20
103 #define DIALOGCOLOR 0x20
104 #define WINDOWCOLOR 0x20
105 #define WINDOWCOLOR_FOCUS 0x21
106 #define MENUCOLOR 0x21
107 #define MENUCOLOR 0x21
108 #define OPENMENUCOLOR 0x22
109 #define ACTIVEMENUITEMCOLOR 0x23
110 #define WIDGETCOLOR_HLINK 0x21
111 #define WIDGETCOLOR_FOCUS 0x20
112 #define WIDGETCOLOR_DIALOG 0x22
116 #define UIP_CONF_MAX_CONNECTIONS 4
117 #define UIP_CONF_MAX_LISTENPORTS 4
118 #define UIP_CONF_BUFFER_SIZE 400
119 #define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN
120 #define UIP_CONF_TCP_SPLIT 0
121 #define UIP_CONF_LOGGING 0
124 #define UIP_CONF_UDP 0
125 #define UIP_CONF_UDP_CHECKSUMS 0
126 #define UIP_CONF_LLH_LEN 0
127 #undef UIP_CONF_BROADCAST
128 #undef RS232_CONF_CALLBACK
130 #define slip_arch_init(ubr) rs232_arch_init(ubr)
131 #define slip_arch_writeb(c) rs232_arch_writeb(c)
133 #ifdef WITH_LOADER_ARCH
135 #define LOADER_CONF_ARCH "loader_arch.h"
142 #define SHELL_GUI_CONF_XSIZE 26
143 #define SHELL_GUI_CONF_YSIZE 10
146 #define EDITOR_CONF_WIDTH 26
147 #define EDITOR_CONF_HEIGHT 8
150 #define PROCESSLIST_CONF_HEIGHT 12
153 #define FILES_CONF_HEIGHT 6
159 #define TELNET_CONF_WINDOW_WIDTH 30
160 #define TELNET_CONF_WINDOW_HEIGHT 13
165 #define TELNETD_CONF_GUI 0
166 #define SHELL_CONF_WITH_PROGRAM_HANDLER 0
169 #undef WEBSERVER_CONF_LOG_ENABLED
170 #define HTTPD_CONF_CGI 0
171 #define HTTPD_CONF_SCRIPT 0
172 #define HTTPD_CONF_STATISTICS 0
175 #define VNC_CONF_REFRESH_ROWS 8
177 #define WWW_CONF_WEBPAGE_WIDTH 76
178 #define WWW_CONF_WEBPAGE_HEIGHT 30
179 #define WWW_CONF_HISTORY_SIZE 40
180 #define WWW_CONF_MAX_URLLEN 200
181 #define WWW_CONF_MAX_NUMPAGEWIDGETS 80
182 #define WWW_CONF_RENDERSTATE 1
183 #define WWW_CONF_FORMS 1
184 #define WWW_CONF_MAX_FORMACTIONLEN 200
185 #define WWW_CONF_MAX_FORMNAMELEN 200
186 #define WWW_CONF_MAX_INPUTNAMELEN 200
187 #define WWW_CONF_MAX_INPUTVALUELEN 240
188 #define WWW_CONF_PAGEVIEW 1