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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [src/] [ecos/] [world_thread.c] - Diff between revs 27 and 174

Only display areas with differences | Details | Blame | View Log

Rev 27 Rev 174
#include <pkgconf/system.h>     /* which packages are enabled/disabled */
#include <pkgconf/system.h>     /* which packages are enabled/disabled */
#ifdef CYGPKG_KERNEL
#ifdef CYGPKG_KERNEL
# include <pkgconf/kernel.h>
# include <pkgconf/kernel.h>
#endif
#endif
#ifdef CYGPKG_LIBC
#ifdef CYGPKG_LIBC
# include <pkgconf/libc.h>
# include <pkgconf/libc.h>
#endif
#endif
#ifdef CYGPKG_IO_SERIAL
#ifdef CYGPKG_IO_SERIAL
# include <pkgconf/io_serial.h>
# include <pkgconf/io_serial.h>
#endif
#endif
 
 
#ifndef CYGFUN_KERNEL_API_C
#ifndef CYGFUN_KERNEL_API_C
# error Kernel API must be enabled to build this application
# error Kernel API must be enabled to build this application
#endif
#endif
 
 
#ifndef CYGPKG_LIBC_STDIO
#ifndef CYGPKG_LIBC_STDIO
# error C library standard I/O must be enabled to build this application
# error C library standard I/O must be enabled to build this application
#endif
#endif
 
 
#ifndef CYGPKG_IO_SERIAL_HALDIAG
#ifndef CYGPKG_IO_SERIAL_HALDIAG
# error I/O HALDIAG pseudo-device driver must be enabled to build this application
# error I/O HALDIAG pseudo-device driver must be enabled to build this application
#endif
#endif
 
 
/* INCLUDES */
/* INCLUDES */
 
 
#include <stdio.h>                      /* printf */
#include <stdio.h>                      /* printf */
#include <stdlib.h>                      /* printf */
#include <stdlib.h>                      /* printf */
#include <string.h>                     /* strlen */
#include <string.h>                     /* strlen */
#include <cyg/kernel/kapi.h>            /* All the kernel specific stuff */
#include <cyg/kernel/kapi.h>            /* All the kernel specific stuff */
#include <cyg/infra/diag.h>        
#include <cyg/infra/diag.h>        
 
 
#define MWINCLUDECOLORS
#define MWINCLUDECOLORS
#include "nano-X.h"
#include "nano-X.h"
 
 
 
 
//
//
// Component interfaces
// Component interfaces
//
//
 
 
externC int world_main(int argc, char *argv[]);
externC int world_main(int argc, char *argv[]);
 
 
int
int
world_thread(CYG_ADDRWORD data)
world_thread(CYG_ADDRWORD data)
{
{
    int argc = 1;
    int argc = 1;
    char *argv[] = {"world" };
    char *argv[] = {"world" };
 
 
    cyg_thread_delay(10*100);
    cyg_thread_delay(10*100);
    INIT_PER_THREAD_DATA();
    INIT_PER_THREAD_DATA();
    world_main(argc, argv);
    world_main(argc, argv);
}
}
 
 

powered by: WebSVN 2.1.0

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