1 #include <pkgconf/system.h> /* which packages are enabled/disabled */
3 # include <pkgconf/kernel.h>
6 # include <pkgconf/libc.h>
8 #ifdef CYGPKG_IO_SERIAL
9 # include <pkgconf/io_serial.h>
12 #ifndef CYGFUN_KERNEL_API_C
13 # error Kernel API must be enabled to build this application
16 #ifndef CYGPKG_LIBC_STDIO
17 # error C library standard I/O must be enabled to build this application
20 #ifndef CYGPKG_IO_SERIAL_HALDIAG
21 # error I/O HALDIAG pseudo-device driver must be enabled to build this application
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>
32 #define MWINCLUDECOLORS
37 // Component interfaces
40 externC int landmine_main(int argc, char *argv[]);
43 landmine_thread(CYG_ADDRWORD data)
46 char *argv[] = {"landmine",
50 INIT_PER_THREAD_DATA();
51 landmine_main(argc, argv);