contiki-conf.h

00001 #ifndef __CONTIKI_CONF_H__
00002 #define __CONTIKI_CONF_H__
00003 
00004 #define CC_CONF_REGISTER_ARGS          1
00005 #define CC_CONF_FUNCTION_POINTER_ARGS  1
00006 
00007 #define CCIF
00008 #define CLIF
00009 
00010 typedef unsigned short clock_time_t;
00011 #define CLOCK_CONF_SECOND 1000
00012 
00013 #define NUT_CPU_FREQ 14745600UL
00014 #define AVR_CLK_COUNT (NUT_CPU_FREQ / (128L * CLOCK_CONF_SECOND) + 0.5)
00015 
00016 void clock_delay(unsigned int us2);
00017 
00018 void clock_wait(int ms10);
00019 
00020 void clock_set_seconds(unsigned long s);
00021 unsigned long clock_seconds(void);
00022 
00023 
00024 /*
00025  * This file is used for setting various compile time settings for the
00026  * CTK GUI toolkit.
00027 */
00028 
00029 #include "ctk/ctk-vncarch.h"
00030 
00031 /* Defines which key that is to be used for activating the menus */
00032 #define CTK_CONF_MENU_KEY             CH_F1
00033 
00034 /* Defines which key that is to be used for switching the frontmost
00035    window.  */
00036 #define CTK_CONF_WINDOWSWITCH_KEY     CH_ESC
00037 
00038 /* Defines which key that is to be used for switching to the next
00039    widget.  */
00040 #define CTK_CONF_WIDGETDOWN_KEY       CH_TAB
00041 
00042 /* Defines which key that is to be used for switching to the prevoius
00043    widget.  */
00044 #define CTK_CONF_WIDGETUP_KEY         1
00045 
00046 /* Toggles support for icons. */
00047 #define CTK_CONF_ICONS                1 /* 107 bytes */
00048 
00049 /* Toggles support for icon bitmaps. */
00050 #define CTK_CONF_ICON_BITMAPS         1
00051 
00052 /* Toggles support for icon textmaps. */
00053 #define CTK_CONF_ICON_TEXTMAPS        1
00054 
00055 /* Toggles support for windows. */
00056 #define CTK_CONF_WINDOWS              1
00057 
00058 /* Toggles support for movable windows. */
00059 #define CTK_CONF_WINDOWMOVE           1 /* 333 bytes */
00060 
00061 /* Toggles support for closable windows. */
00062 #define CTK_CONF_WINDOWCLOSE          1 /* 14 bytes */
00063 
00064 /* Toggles support for menus. */
00065 #define CTK_CONF_MENUS                1 /* 1384 bytes */
00066 
00067 /* Toggles mouse support (must have support functions in the
00068 architecture specific files to work). */
00069 #define CTK_CONF_MOUSE_SUPPORT        1
00070 
00071 /* Defines the default width of a menu. */
00072 #define CTK_CONF_MENUWIDTH            16
00073 /* The maximum number of menu items in each menu. */
00074 #define CTK_CONF_MAXMENUITEMS         10
00075 
00076 
00077 /* Maximum number of clients to the telnet server */
00078 #define CTK_TERM_CONF_MAX_TELNET_CLIENTS 3
00079 
00080 /* Telnet server port */
00081 #define CTK_TERM_CONF_TELNET_PORT 23
00082 
00083 /* Serial server output buffer size */
00084 #define CTK_TERM_CONF_SERIAL_BUFFER_SIZE 300
00085 
00086 /* Maximum number of clients to the terminal module.
00087    Should be set to CTK_TERM_CONF_MAX_TELNET_CLIENTS or
00088    CTK_TERM_CONF_MAX_TELNET_CLIENTS+1 if the serial server is used too
00089 */
00090 #define CTK_TERM_CONF_MAX_CLIENTS (CTK_TERM_CONF_MAX_TELNET_CLIENTS+1)
00091 
00092 #define CTK_VNCSERVER_CONF_NUMCONNS 8
00093 
00094 #define CTK_VNCSERVER_CONF_MAX_ICONS 8
00095 
00096 #define EMAIL_CONF_WIDTH 48
00097 #define EMAIL_CONF_HEIGHT 16
00098 
00099 #define IRC_CONF_WIDTH 78
00100 #define IRC_CONF_HEIGHT 20
00101 
00102 #define IRC_CONF_SYSTEM_STRING "ethernut"
00103 
00104 
00105 #define LIBCONIO_CONF_SCREEN_WIDTH  70
00106 #define LIBCONIO_CONF_SCREEN_HEIGHT 40
00107 
00108 
00109 
00110 #define LOG_CONF_ENABLED 0
00111 
00112 #define PROGRAM_HANDLER_CONF_MAX_NUMDSCS 10
00113 
00114 /* COM port to be used for SLIP connection */
00115 #define SLIP_PORT RS232_PORT_0
00116 
00117 #define TELNETD_CONF_LINELEN 32
00118 #define TELNETD_CONF_NUMLINES 16
00119 
00120 
00121 #define UIP_CONF_MAX_CONNECTIONS 10
00122 #define UIP_CONF_MAX_LISTENPORTS 10
00123 #define UIP_CONF_BUFFER_SIZE     100
00124 
00125 #define UIP_CONF_TCP_SPLIT       1
00126 
00127 #define UIP_CONF_UDP_CONNS       6
00128 
00129 #define UIP_CONF_FWCACHE_SIZE    1
00130 
00131 #define UIP_CONF_BROADCAST       1
00132 
00133 
00134 /* The size of the HTML viewing area. */
00135 #define WWW_CONF_WEBPAGE_WIDTH 46
00136 #define WWW_CONF_WEBPAGE_HEIGHT 25
00137 
00138 /* The size of the "Back" history. */
00139 #define WWW_CONF_HISTORY_SIZE 8
00140 
00141 /* Defines the maximum length of an URL */
00142 #define WWW_CONF_MAX_URLLEN 160
00143 
00144 /* The maxiumum number of widgets (i.e., hyperlinks, form elements) on
00145    a page. */
00146 #define WWW_CONF_MAX_NUMPAGEWIDGETS 30
00147 
00148 /* Turns <center> support on or off; must be on for forms to work. */
00149 #define WWW_CONF_RENDERSTATE 1
00150 
00151 /* Toggles support for HTML forms. */
00152 #define WWW_CONF_FORMS       1
00153 
00154 /* Maximum lengths for various HTML form parameters. */
00155 #define WWW_CONF_MAX_FORMACTIONLEN  80
00156 #define WWW_CONF_MAX_FORMNAMELEN    40
00157 #define WWW_CONF_MAX_INPUTNAMELEN   40
00158 #define WWW_CONF_MAX_INPUTVALUELEN  40
00159 
00160 #define WWW_CONF_PAGEVIEW 1
00161 
00162 #define HAVE_STDINT_H
00163 #include "avrdef.h"
00164 
00165 typedef unsigned short uip_stats_t;
00166 
00167 
00168 #endif /* __CONTIKI_CONF_H__ */

Generated on Mon Apr 11 14:23:41 2011 for Contiki 2.5 by  doxygen 1.6.1