OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mw/] [src/] [ecos/] [landmine_thread.c] - Blame information for rev 1772

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 673 markom
#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
 
36
//
37
// Component interfaces
38
//
39
 
40
externC int landmine_main(int argc, char *argv[]);
41
 
42
int
43
landmine_thread(CYG_ADDRWORD data)
44
{
45
    int argc = 5;
46
    char *argv[] = {"landmine",
47
                    "-m", "15",
48
                    "-s", "10"};
49
 
50
    INIT_PER_THREAD_DATA();
51
    landmine_main(argc, argv);
52
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.