contiki-conf.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef __CONTIKI_CONF_H__
00043 #define __CONTIKI_CONF_H__
00044
00045 #include "z80def.h"
00046 #include "sys/cc.h"
00047 #include <ctype.h>
00048 #include <string.h>
00049 #include "ctk/ctk_arch.h"
00050 #include "strcasecmp.h"
00051 #include "log.h"
00052
00053
00054 typedef unsigned long clock_time_t;
00055
00056
00057 #define CLOCK_CONF_SECOND 1024
00058
00059 #define rtimer_arch_now() clock_time()
00060
00061
00062 #define CFS_RAM_CONF_SIZE 512
00063
00064
00065 #define LOG_CONF_ENABLED 0
00066
00067 #undef MALLOC_TEST
00068
00069
00070
00071 #define LIBCONIO_CONF_ATTRIBUTES_ENABLED
00072 #if defined(ARCH_PC6001MK2)
00073 #define LIBCONIO_VRAM_ATTR 0x4000
00074 #define LIBCONIO_VRAM_CHAR 0x4400
00075 #define LIBCONIO_CONF_SCREEN_WIDTH 40
00076 #define LIBCONIO_CONF_SCREEN_HEIGHT 20
00077 #define LIBCONIO_COLOR_NORMAL 0x0f
00078 #define LIBCONIO_COLOR_REVERSED 0x70
00079 #elif (defined(ARCH_PC6001) || defined(ARCH_PC6001A)) && defined(MEMORY_16K)
00080 #define LIBCONIO_VRAM_ATTR 0xc000
00081 #define LIBCONIO_VRAM_CHAR 0xc200
00082 #define LIBCONIO_CONF_SCREEN_WIDTH 32
00083 #define LIBCONIO_CONF_SCREEN_HEIGHT 16
00084 #define LIBCONIO_COLOR_NORMAL 0x20
00085 #define LIBCONIO_COLOR_REVERSED 0x21
00086 #elif (defined(ARCH_PC6001) || defined(ARCH_PC6001A)) && (defined(MEMORY_32K) || defined(MEMORY_ROM))
00087 #define LIBCONIO_VRAM_ATTR 0x8000
00088 #define LIBCONIO_VRAM_CHAR 0x8200
00089 #define LIBCONIO_CONF_SCREEN_WIDTH 32
00090 #define LIBCONIO_CONF_SCREEN_HEIGHT 16
00091 #define LIBCONIO_COLOR_NORMAL 0x20
00092 #define LIBCONIO_COLOR_REVERSED 0x21
00093 #else
00094 #error Specify appropriate ARCH & MEMORY combination
00095 #endif
00096
00097 #if 0
00098 #define SCREENCOLOR 0x20
00099 #define BORDERCOLOR 0x20
00100 #define WIDGETCOLOR 0x20
00101 #define WIDGETCOLOR_FWIN 0x20
00102 #define BACKGROUNDCOLOR 0x20
00103 #define DIALOGCOLOR 0x20
00104 #define WINDOWCOLOR 0x20
00105 #define WINDOWCOLOR_FOCUS 0x21
00106 #define MENUCOLOR 0x21
00107 #define MENUCOLOR 0x21
00108 #define OPENMENUCOLOR 0x22
00109 #define ACTIVEMENUITEMCOLOR 0x23
00110 #define WIDGETCOLOR_HLINK 0x21
00111 #define WIDGETCOLOR_FOCUS 0x20
00112 #define WIDGETCOLOR_DIALOG 0x22
00113 #endif
00114
00115
00116 #define UIP_CONF_MAX_CONNECTIONS 4
00117 #define UIP_CONF_MAX_LISTENPORTS 4
00118 #define UIP_CONF_BUFFER_SIZE 400
00119 #define UIP_CONF_BYTE_ORDER LITTLE_ENDIAN
00120 #define UIP_CONF_TCP_SPLIT 0
00121 #define UIP_CONF_LOGGING 0
00122
00123
00124 #define UIP_CONF_UDP 0
00125 #define UIP_CONF_UDP_CHECKSUMS 0
00126 #define UIP_CONF_LLH_LEN 0
00127 #undef UIP_CONF_BROADCAST
00128 #undef RS232_CONF_CALLBACK
00129
00130 #define slip_arch_init(ubr) rs232_arch_init(ubr)
00131 #define slip_arch_writeb(c) rs232_arch_writeb(c)
00132
00133 #ifdef WITH_LOADER_ARCH
00134
00135 #define LOADER_CONF_ARCH "loader_arch.h"
00136 #endif
00137
00138
00139
00140
00141
00142 #define SHELL_GUI_CONF_XSIZE 26
00143 #define SHELL_GUI_CONF_YSIZE 10
00144
00145
00146 #define EDITOR_CONF_WIDTH 26
00147 #define EDITOR_CONF_HEIGHT 8
00148
00149
00150 #define PROCESSLIST_CONF_HEIGHT 12
00151
00152
00153 #define FILES_CONF_HEIGHT 6
00154
00155
00156
00157
00158
00159 #define TELNET_CONF_WINDOW_WIDTH 30
00160 #define TELNET_CONF_WINDOW_HEIGHT 13
00161
00162
00163
00164
00165 #define TELNETD_CONF_GUI 0
00166 #define SHELL_CONF_WITH_PROGRAM_HANDLER 0
00167
00168
00169 #undef WEBSERVER_CONF_LOG_ENABLED
00170 #define HTTPD_CONF_CGI 0
00171 #define HTTPD_CONF_SCRIPT 0
00172 #define HTTPD_CONF_STATISTICS 0
00173
00174
00175 #define VNC_CONF_REFRESH_ROWS 8
00176
00177 #define WWW_CONF_WEBPAGE_WIDTH 76
00178 #define WWW_CONF_WEBPAGE_HEIGHT 30
00179 #define WWW_CONF_HISTORY_SIZE 40
00180 #define WWW_CONF_MAX_URLLEN 200
00181 #define WWW_CONF_MAX_NUMPAGEWIDGETS 80
00182 #define WWW_CONF_RENDERSTATE 1
00183 #define WWW_CONF_FORMS 1
00184 #define WWW_CONF_MAX_FORMACTIONLEN 200
00185 #define WWW_CONF_MAX_FORMNAMELEN 200
00186 #define WWW_CONF_MAX_INPUTNAMELEN 200
00187 #define WWW_CONF_MAX_INPUTVALUELEN 240
00188 #define WWW_CONF_PAGEVIEW 1
00189
00190 #endif