2 cat > 'orte/orte_config_omk_win32.h' <<'EOF'
3 /* orte/include/orte/orte_config.h. Generated by configure. */
4 /* orte/include/orte/orte_config.h.in. Generated from configure.in by autoheader. */
6 /* Define to enable JORTE's compilation */
7 /* #undef CONFIG_JORTE */
9 /* Define if is target CYGWIN */
10 /* #undef CONFIG_ORTE_CYGWIN */
12 /* Define if linux kernel is found */
13 /* #undef CONFIG_ORTE_KERNEL */
15 /* Define if is target MINGW */
16 #define CONFIG_ORTE_MINGW 1
18 /* Define to enable ORTE's RT support */
19 /* #undef CONFIG_ORTE_RT */
21 /* Define if kernel is RTAI patched */
22 /* #undef CONFIG_ORTE_RTAI */
24 /* Define if kernel is RTLinux patched */
25 /* #undef CONFIG_ORTE_RTL */
27 /* Define if onetd stack is found */
28 /* #undef CONFIG_ORTE_RTL_ONETD */
30 /* Define if wIP stack is found */
31 /* #undef CONFIG_ORTE_RTL_WIP */
33 /* Define if is target a unix system */
34 /* #undef CONFIG_ORTE_UNIX */
36 /* Define if is target windows */
37 #define CONFIG_ORTE_WIN 1
39 /* Define to 1 if you have the <arpa/inet.h> header file. */
40 /* #undef HAVE_ARPA_INET_H */
42 /* Define to 1 if you have the <asm/byteorder.h> header file. */
43 /* #undef HAVE_ASM_BYTEORDER_H */
45 /* Define to 1 if you have the <byteswap.h> header file. */
46 /* #undef HAVE_BYTESWAP_H */
48 /* Define to 1 if you have the <ctype.h> header file. */
49 #define HAVE_CTYPE_H 1
51 /* Define to 1 if you have the <dlfcn.h> header file. */
52 /* #undef HAVE_DLFCN_H */
54 /* Define to 1 if you have the <errno.h> header file. */
55 #define HAVE_ERRNO_H 1
57 /* Define to 1 if you have the <fcntl.h> header file. */
58 #define HAVE_FCNTL_H 1
60 /* Define to 1 if you have the `gethostbyname' function. */
61 /* #undef HAVE_GETHOSTBYNAME */
63 /* Define to 1 if you have the <getopt.h> header file. */
64 #define HAVE_GETOPT_H 1
66 /* Define to 1 if you have the `getopt_long' function. */
67 /* #undef HAVE_GETOPT_LONG */
69 /* Define for ORTE getopt_long self implemetation */
70 #define HAVE_GETPOT_LONG_ORTE 1
72 /* Define to 1 if you have the <inttypes.h> header file. */
73 #define HAVE_INTTYPES_H 1
75 /* Define to 1 if you have the `c_r' library (-lc_r). */
76 /* #undef HAVE_LIBC_R */
78 /* Define to 1 if you have the `nsl' library (-lnsl). */
79 /* #undef HAVE_LIBNSL */
81 /* Define to 1 if you have the `popt' library (-lpopt). */
82 /* #undef HAVE_LIBPOPT */
84 /* Define to 1 if you have the `pthread' library (-lpthread). */
85 /* #undef HAVE_LIBPTHREAD */
87 /* Define to 1 if you have the `socket' library (-lsocket). */
88 /* #undef HAVE_LIBSOCKET */
90 /* Define to 1 if you have the `ws2_32' library (-lws2_32). */
91 #define HAVE_LIBWS2_32 1
93 /* Define to 1 if you have the <linux/ctype.h> header file. */
94 /* #undef HAVE_LINUX_CTYPE_H */
96 /* Define to 1 if you have the <linux/if.h> header file. */
97 /* #undef HAVE_LINUX_IF_H */
99 /* Define to 1 if you have the <linux/in.h> header file. */
100 /* #undef HAVE_LINUX_IN_H */
102 /* Define to 1 if you have the <linux/module.h> header file. */
103 /* #undef HAVE_LINUX_MODULE_H */
105 /* Define to 1 if you have the <linux/socket.h> header file. */
106 /* #undef HAVE_LINUX_SOCKET_H */
108 /* Define to 1 if you have the <linux/string.h> header file. */
109 /* #undef HAVE_LINUX_STRING_H */
111 /* Define to 1 if you have the <linux/time.h> header file. */
112 /* #undef HAVE_LINUX_TIME_H */
114 /* Define to 1 if you have the <linux/types.h> header file. */
115 /* #undef HAVE_LINUX_TYPES_H */
117 /* Define to 1 if you have the <memory.h> header file. */
118 #define HAVE_MEMORY_H 1
120 /* Define to 1 if you have the <netdb.h> header file. */
121 /* #undef HAVE_NETDB_H */
123 /* Define to 1 if you have the <netinet/in.h> header file. */
124 /* #undef HAVE_NETINET_IN_H */
126 /* Define to 1 if you have the <net/if.h> header file. */
127 /* #undef HAVE_NET_IF_H */
129 /* Define to 1 if you have the <nictab.h> header file. */
130 /* #undef HAVE_NICTAB_H */
132 /* Define to 1 if you have the <nic.h> header file. */
133 /* #undef HAVE_NIC_H */
135 /* Define to 1 if you have the <onetd.h> header file. */
136 /* #undef HAVE_ONETD_H */
138 /* Define to 1 if you have the <pthread.h> header file. */
139 /* #undef HAVE_PTHREAD_H */
141 /* Define to 1 if you have the <rtl.h> header file. */
142 /* #undef HAVE_RTL_H */
144 /* Define to 1 if you have the <rtl_malloc.h> header file. */
145 /* #undef HAVE_RTL_MALLOC_H */
147 /* Define to 1 if you have the <rtnet.h> header file. */
148 /* #undef HAVE_RTNET_H */
150 /* Define to 1 if you have the <signal.h> header file. */
151 #define HAVE_SIGNAL_H 1
153 /* Define to 1 if you have the <stdarg.h> header file. */
154 #define HAVE_STDARG_H 1
156 /* Define to 1 if you have the <stdint.h> header file. */
157 #define HAVE_STDINT_H 1
159 /* Define to 1 if you have the <stdio.h> header file. */
160 #define HAVE_STDIO_H 1
162 /* Define to 1 if you have the <stdlib.h> header file. */
163 #define HAVE_STDLIB_H 1
165 /* Define to 1 if you have the <strings.h> header file. */
166 #define HAVE_STRINGS_H 1
168 /* Define to 1 if you have the <string.h> header file. */
169 #define HAVE_STRING_H 1
171 /* Define to 1 if you have the <sys/ioctl.h> header file. */
172 /* #undef HAVE_SYS_IOCTL_H */
174 /* Define to 1 if you have the <sys/socket.h> header file. */
175 /* #undef HAVE_SYS_SOCKET_H */
177 /* Define to 1 if you have the <sys/sockio.h> header file. */
178 /* #undef HAVE_SYS_SOCKIO_H */
180 /* Define to 1 if you have the <sys/stat.h> header file. */
181 #define HAVE_SYS_STAT_H 1
183 /* Define to 1 if you have the <sys/time.h> header file. */
184 #define HAVE_SYS_TIME_H 1
186 /* Define to 1 if you have the <sys/types.h> header file. */
187 #define HAVE_SYS_TYPES_H 1
189 /* Define to 1 if you have the <time.h> header file. */
190 /* #undef HAVE_TIME_H */
192 /* Define to 1 if you have the <udp.h> header file. */
193 /* #undef HAVE_UDP_H */
195 /* Define to 1 if you have the <unistd.h> header file. */
196 #define HAVE_UNISTD_H 1
198 /* Define to 1 if you have the <w32api/windows.h> header file. */
199 /* #undef HAVE_W32API_WINDOWS_H */
201 /* Define to 1 if you have the <windows.h> header file. */
202 #define HAVE_WINDOWS_H 1
204 /* Define to 1 if you have the <winsock2.h> header file. */
205 #define HAVE_WINSOCK2_H 1
207 /* Define to 1 if you have the <ws2tcpip.h> header file. */
208 #define HAVE_WS2TCPIP_H 1
210 /* Define to the address where bug reports for this package should be sent. */
211 #define ORTE_PACKAGE_BUGREPORT "petr.smolik@wo.cz"
213 /* Define to the full name of this package. */
214 #define ORTE_PACKAGE_NAME "orte"
216 /* Define to the full name and version of this package. */
217 #define ORTE_PACKAGE_STRING "orte 0.3.1"
219 /* Define to the one symbol short name of this package. */
220 #define ORTE_PACKAGE_TARNAME "orte"
222 /* Define to the version of this package. */
223 #define ORTE_PACKAGE_VERSION "0.3.1"
225 /* Define to 1 if you have the ANSI C header files. */
226 #define STDC_HEADERS 1
228 /* Define to 1 if your processor stores words with the most significant byte
229 first (like Motorola and SPARC, unlike Intel and VAX). */
230 /* #undef WORDS_BIGENDIAN */
238 /* Define to empty if `const' does not conform to ANSI C. */
241 /* Define to `__inline__' or `__inline' if that's what the C compiler
242 calls it, or to nothing if 'inline' is not supported under any name. */
247 cat > 'ls-include.txt' <<'EOF'
261 cat > 'Makefile.omk' <<'EOF'
262 include_HEADERS = x.h periph/sci_regs.h
263 nobase_include_HEADERS = periph/sci_channels.h
264 renamed_include_HEADERS = x.h->y.h
265 renamed_include_HEADERS += orte/orte_config_omk_win32.h->orte/orte_config.h
267 echo '// Hello' > 'x.h'
269 cat > 'periph/sci_regs.h' <<'EOF'
270 /*******************************************************************
271 Components for embedded applications builded for
272 laboratory and medical instruments firmware
274 sci_regs.h - UART communication for H2638 microcontroller
276 (C) 2005 by Michal Sojka <wentasah@centrum.cz>
277 (C) 2005 by Petr Kovacik <kovacp1@fel.cvut.cz>
279 The COLAMI components can be used and copied according to next
281 - MPL - Mozilla Public License
282 - GPL - GNU Public License
284 *******************************************************************/
292 volatile __u8 rs232_smr;
293 volatile __u8 rs232_brr;
294 volatile __u8 rs232_scr;
295 volatile __u8 rs232_tdr;
296 volatile __u8 rs232_ssr;
297 volatile __u8 rs232_rdr;
298 volatile __u8 rs232_scmr;
302 #endif /* _SCI_REGS_H */
304 cat > 'periph/sci_channels.h' <<'EOF'
305 /*******************************************************************
306 Components for embedded applications builded for
307 laboratory and medical instruments firmware
309 sci_channels.h - UART communication for H2638 microcontroller
311 (C) 2005 by Michal Sojka <wentasah@centrum.cz>
313 The COLAMI components can be used and copied according to next
315 - MPL - Mozilla Public License
316 - GPL - GNU Public License
318 *******************************************************************/
322 #include <periph/sci_rs232.h>
323 #include <system_def.h>
325 extern sci_info_t sci_rs232_chan0, sci_rs232_chan1, sci_rs232_chan2;
327 extern sci_info_t *sci_rs232_chan_array[];
329 #ifndef SCI_RS232_CHAN_DEFAULT
330 #define SCI_RS232_CHAN_DEFAULT 0
334 * This variable selects the default channel for use by IO functions
335 * (prtinf etc.). You can change the value of this variable in your
336 * application or by defining SCI_RS232_CHAN_DEFAULT symbol (probably
339 extern int sci_rs232_chan_default;