]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/services/gfx/mw/v2_0/src/ecos/nanowm_thread.c
Initial revision
[karo-tx-redboot.git] / packages / services / gfx / mw / v2_0 / src / ecos / nanowm_thread.c
1 #include <pkgconf/system.h>     /* which packages are enabled/disabled */
2 #ifdef CYGPKG_KERNEL
3 # include <pkgconf/kernel.h>
4 #endif
5 #ifdef CYGPKG_LIBC
6 # include <pkgconf/libc.h>
7 #endif
8 #ifdef CYGPKG_IO_SERIAL
9 # include <pkgconf/io_serial.h>
10 #endif
11
12 #ifndef CYGFUN_KERNEL_API_C
13 # error Kernel API must be enabled to build this application
14 #endif
15
16 #ifndef CYGPKG_LIBC_STDIO
17 # error C library standard I/O must be enabled to build this application
18 #endif
19
20 #ifndef CYGPKG_IO_SERIAL_HALDIAG
21 # error I/O HALDIAG pseudo-device driver must be enabled to build this application
22 #endif
23
24 /* INCLUDES */
25
26 #include <stdio.h>                      /* printf */
27 #include <stdlib.h>                      /* printf */
28 #include <string.h>                     /* strlen */
29 #include <cyg/kernel/kapi.h>            /* All the kernel specific stuff */
30 #include <cyg/infra/diag.h>        
31
32 #define MWINCLUDECOLORS
33 #include "nano-X.h"
34
35 #include <microwin/ecos_mw_app.h>
36
37 extern void ecos_nx_init(CYG_ADDRWORD data);
38 _mw_app("Nano-WM", nanowm, ECOS_MW_NANOX_PRIORITY, ecos_nx_init);
39
40 //
41 // Component interfaces
42 //
43
44 externC int nanowm_main(int argc, char *argv[]);
45
46 static void
47 nanowm_thread(CYG_ADDRWORD data)
48 {
49     int argc = 0;
50     char **argv;
51
52     INIT_PER_THREAD_DATA();
53     nanowm_main(argc, argv);
54 }