mkdir 'orte' cat > 'orte/orte_config_omk_win32.h' <<'EOF' /* orte/include/orte/orte_config.h. Generated by configure. */ /* orte/include/orte/orte_config.h.in. Generated from configure.in by autoheader. */ /* Define to enable JORTE's compilation */ /* #undef CONFIG_JORTE */ /* Define if is target CYGWIN */ /* #undef CONFIG_ORTE_CYGWIN */ /* Define if linux kernel is found */ /* #undef CONFIG_ORTE_KERNEL */ /* Define if is target MINGW */ #define CONFIG_ORTE_MINGW 1 /* Define to enable ORTE's RT support */ /* #undef CONFIG_ORTE_RT */ /* Define if kernel is RTAI patched */ /* #undef CONFIG_ORTE_RTAI */ /* Define if kernel is RTLinux patched */ /* #undef CONFIG_ORTE_RTL */ /* Define if onetd stack is found */ /* #undef CONFIG_ORTE_RTL_ONETD */ /* Define if wIP stack is found */ /* #undef CONFIG_ORTE_RTL_WIP */ /* Define if is target a unix system */ /* #undef CONFIG_ORTE_UNIX */ /* Define if is target windows */ #define CONFIG_ORTE_WIN 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_ARPA_INET_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ASM_BYTEORDER_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_BYTESWAP_H */ /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_DLFCN_H */ /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define to 1 if you have the `gethostbyname' function. */ /* #undef HAVE_GETHOSTBYNAME */ /* Define to 1 if you have the header file. */ #define HAVE_GETOPT_H 1 /* Define to 1 if you have the `getopt_long' function. */ /* #undef HAVE_GETOPT_LONG */ /* Define for ORTE getopt_long self implemetation */ #define HAVE_GETPOT_LONG_ORTE 1 /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the `c_r' library (-lc_r). */ /* #undef HAVE_LIBC_R */ /* Define to 1 if you have the `nsl' library (-lnsl). */ /* #undef HAVE_LIBNSL */ /* Define to 1 if you have the `popt' library (-lpopt). */ /* #undef HAVE_LIBPOPT */ /* Define to 1 if you have the `pthread' library (-lpthread). */ /* #undef HAVE_LIBPTHREAD */ /* Define to 1 if you have the `socket' library (-lsocket). */ /* #undef HAVE_LIBSOCKET */ /* Define to 1 if you have the `ws2_32' library (-lws2_32). */ #define HAVE_LIBWS2_32 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_LINUX_CTYPE_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LINUX_IF_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LINUX_IN_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LINUX_MODULE_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LINUX_SOCKET_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LINUX_STRING_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LINUX_TIME_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_LINUX_TYPES_H */ /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_NETDB_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NETINET_IN_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NET_IF_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NICTAB_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_NIC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_ONETD_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_PTHREAD_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_RTL_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_RTL_MALLOC_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_RTNET_H */ /* Define to 1 if you have the header file. */ #define HAVE_SIGNAL_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDIO_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_IOCTL_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_SOCKET_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_SOCKIO_H */ /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_TIME_H */ /* Define to 1 if you have the header file. */ /* #undef HAVE_UDP_H */ /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_W32API_WINDOWS_H */ /* Define to 1 if you have the header file. */ #define HAVE_WINDOWS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_WINSOCK2_H 1 /* Define to 1 if you have the header file. */ #define HAVE_WS2TCPIP_H 1 /* Define to the address where bug reports for this package should be sent. */ #define ORTE_PACKAGE_BUGREPORT "petr.smolik@wo.cz" /* Define to the full name of this package. */ #define ORTE_PACKAGE_NAME "orte" /* Define to the full name and version of this package. */ #define ORTE_PACKAGE_STRING "orte 0.3.1" /* Define to the one symbol short name of this package. */ #define ORTE_PACKAGE_TARNAME "orte" /* Define to the version of this package. */ #define ORTE_PACKAGE_VERSION "0.3.1" /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ /* #undef WORDS_BIGENDIAN */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus /* #undef inline */ #endif EOF cat > 'ls-include.txt' <<'EOF' .: orte periph sci_regs.h x.h y.h ./orte: orte_config.h ./periph: sci_channels.h EOF cat > 'Makefile.omk' <<'EOF' include_HEADERS = x.h periph/sci_regs.h nobase_include_HEADERS = periph/sci_channels.h renamed_include_HEADERS = x.h->y.h renamed_include_HEADERS += orte/orte_config_omk_win32.h->orte/orte_config.h EOF echo '// Hello' > 'x.h' mkdir 'periph' cat > 'periph/sci_regs.h' <<'EOF' /******************************************************************* Components for embedded applications builded for laboratory and medical instruments firmware sci_regs.h - UART communication for H2638 microcontroller (C) 2005 by Michal Sojka (C) 2005 by Petr Kovacik The COLAMI components can be used and copied according to next license alternatives - MPL - Mozilla Public License - GPL - GNU Public License *******************************************************************/ #ifndef _SCI_REGS_H #define _SCI_REGS_H #include struct sci_regs { volatile __u8 rs232_smr; volatile __u8 rs232_brr; volatile __u8 rs232_scr; volatile __u8 rs232_tdr; volatile __u8 rs232_ssr; volatile __u8 rs232_rdr; volatile __u8 rs232_scmr; }; #endif /* _SCI_REGS_H */ EOF cat > 'periph/sci_channels.h' <<'EOF' /******************************************************************* Components for embedded applications builded for laboratory and medical instruments firmware sci_channels.h - UART communication for H2638 microcontroller (C) 2005 by Michal Sojka The COLAMI components can be used and copied according to next license alternatives - MPL - Mozilla Public License - GPL - GNU Public License *******************************************************************/ #ifndef _SCI_PORTS_H #define _SCI_PORTS_H #include #include extern sci_info_t sci_rs232_chan0, sci_rs232_chan1, sci_rs232_chan2; extern sci_info_t *sci_rs232_chan_array[]; #ifndef SCI_RS232_CHAN_DEFAULT #define SCI_RS232_CHAN_DEFAULT 0 #endif /** * This variable selects the default channel for use by IO functions * (prtinf etc.). You can change the value of this variable in your * application or by defining SCI_RS232_CHAN_DEFAULT symbol (probably * in system_def.h). */ extern int sci_rs232_chan_default; #endif EOF