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_FUNCTION_POINTER_ARGS 1
6 
7 #define CCIF
8 #define CLIF
9 
10 typedef unsigned short clock_time_t;
11 #define CLOCK_CONF_SECOND 1000
12 
13 void clock_delay(unsigned int us2);
14 
15 void clock_wait(int ms10);
16 
17 void clock_set_seconds(unsigned long s);
18 unsigned long clock_seconds(void);
19 
20 
21 /*
22  * This file is used for setting various compile time settings for the
23  * CTK GUI toolkit.
24 */
25 
26 #include "ctk/ctk-vncarch.h"
27 
28 /* Defines which key that is to be used for activating the menus */
29 #define CTK_CONF_MENU_KEY CH_F1
30 
31 /* Defines which key that is to be used for switching the frontmost
32  window. */
33 #define CTK_CONF_WINDOWSWITCH_KEY CH_ESC
34 
35 /* Defines which key that is to be used for switching to the next
36  widget. */
37 #define CTK_CONF_WIDGETDOWN_KEY CH_TAB
38 
39 /* Defines which key that is to be used for switching to the prevoius
40  widget. */
41 #define CTK_CONF_WIDGETUP_KEY 1
42 
43 /* Toggles support for icons. */
44 #define CTK_CONF_ICONS 1 /* 107 bytes */
45 
46 /* Toggles support for icon bitmaps. */
47 #define CTK_CONF_ICON_BITMAPS 1
48 
49 /* Toggles support for icon textmaps. */
50 #define CTK_CONF_ICON_TEXTMAPS 1
51 
52 /* Toggles support for windows. */
53 #define CTK_CONF_WINDOWS 1
54 
55 /* Toggles support for movable windows. */
56 #define CTK_CONF_WINDOWMOVE 1 /* 333 bytes */
57 
58 /* Toggles support for closable windows. */
59 #define CTK_CONF_WINDOWCLOSE 1 /* 14 bytes */
60 
61 /* Toggles support for menus. */
62 #define CTK_CONF_MENUS 1 /* 1384 bytes */
63 
64 /* Toggles mouse support (must have support functions in the
65 architecture specific files to work). */
66 #define CTK_CONF_MOUSE_SUPPORT 1
67 
68 /* Defines the default width of a menu. */
69 #define CTK_CONF_MENUWIDTH 16
70 /* The maximum number of menu items in each menu. */
71 #define CTK_CONF_MAXMENUITEMS 10
72 
73 
74 /* Maximum number of clients to the telnet server */
75 #define CTK_TERM_CONF_MAX_TELNET_CLIENTS 3
76 
77 /* Telnet server port */
78 #define CTK_TERM_CONF_TELNET_PORT 23
79 
80 /* Serial server output buffer size */
81 #define CTK_TERM_CONF_SERIAL_BUFFER_SIZE 300
82 
83 /* Maximum number of clients to the terminal module.
84  Should be set to CTK_TERM_CONF_MAX_TELNET_CLIENTS or
85  CTK_TERM_CONF_MAX_TELNET_CLIENTS+1 if the serial server is used too
86 */
87 #define CTK_TERM_CONF_MAX_CLIENTS (CTK_TERM_CONF_MAX_TELNET_CLIENTS+1)
88 
89 #define CTK_VNCSERVER_CONF_NUMCONNS 8
90 
91 #define CTK_VNCSERVER_CONF_MAX_ICONS 8
92 
93 #define EMAIL_CONF_WIDTH 48
94 #define EMAIL_CONF_HEIGHT 16
95 
96 #define IRC_CONF_WIDTH 78
97 #define IRC_CONF_HEIGHT 20
98 
99 #define IRC_CONF_SYSTEM_STRING "ethernut"
100 
101 
102 #define LIBCONIO_CONF_SCREEN_WIDTH 70
103 #define LIBCONIO_CONF_SCREEN_HEIGHT 40
104 
105 
106 
107 #define LOG_CONF_ENABLED 0
108 
109 #define PROGRAM_HANDLER_CONF_MAX_NUMDSCS 10
110 
111 /* COM port to be used for SLIP connection */
112 #define SLIP_PORT RS232_PORT_0
113 
114 #define TELNETD_CONF_LINELEN 64
115 #define TELNETD_CONF_NUMLINES 16
116 
117 
118 #define UIP_CONF_MAX_CONNECTIONS 10
119 #define UIP_CONF_MAX_LISTENPORTS 10
120 #define UIP_CONF_BUFFER_SIZE 100
121 
122 #define UIP_CONF_TCP_SPLIT 1
123 
124 #define UIP_CONF_UDP_CONNS 6
125 
126 #define UIP_CONF_FWCACHE_SIZE 1
127 
128 #define UIP_CONF_BROADCAST 1
129 
130 
131 /* The size of the HTML viewing area. */
132 #define WWW_CONF_WEBPAGE_WIDTH 46
133 #define WWW_CONF_WEBPAGE_HEIGHT 25
134 
135 /* The size of the "Back" history. */
136 #define WWW_CONF_HISTORY_SIZE 8
137 
138 /* Defines the maximum length of an URL */
139 #define WWW_CONF_MAX_URLLEN 160
140 
141 /* The maxiumum number of widgets (i.e., hyperlinks, form elements) on
142  a page. */
143 #define WWW_CONF_MAX_NUMPAGEWIDGETS 30
144 
145 /* Turns <center> support on or off; must be on for forms to work. */
146 #define WWW_CONF_RENDERSTATE 1
147 
148 /* Toggles support for HTML forms. */
149 #define WWW_CONF_FORMS 1
150 
151 /* Maximum lengths for various HTML form parameters. */
152 #define WWW_CONF_MAX_FORMACTIONLEN 80
153 #define WWW_CONF_MAX_FORMNAMELEN 40
154 #define WWW_CONF_MAX_INPUTNAMELEN 40
155 #define WWW_CONF_MAX_INPUTVALUELEN 40
156 
157 #define WWW_CONF_PAGEVIEW 1
158 
159 #define HAVE_STDINT_H
160 #include "avrdef.h"
161 
162 typedef unsigned short uip_stats_t;
163 
164 
165 #endif /* __CONTIKI_CONF_H__ */