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