source: examples-v2/hello/both_hello/test.c @ fd3c47c

4.11examples-v2-4-10-branch
Last change on this file since fd3c47c was fd3c47c, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 6, 2010 at 9:26:17 PM

2010-04-06 Joel Sherrill <joel.sherrill@…>

  • both_hello/test.c: Add unistd.h
  • Property mode set to 100644
File size: 756 bytes
Line 
1/*
2 *  Simple test program -- simplified version of sample test hello.
3 */
4
5#include <bsp.h>
6
7#include <stdio.h>
8#include <stdlib.h>
9#include <unistd.h>
10
11rtems_task Init(
12  rtems_task_argument ignored
13)
14{
15  printf( "Classic -- Hello World\n" );
16  rtems_task_delete( RTEMS_SELF );
17}
18
19void *POSIX_Init(
20  void *argument
21)
22{
23  printf( "POSIX -- Hello World\n" );
24  sleep( 1 );
25  exit( 0 );
26}
27
28/* configuration information */
29
30#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
31#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
32
33#define CONFIGURE_POSIX_INIT_THREAD_TABLE
34#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
35
36#define CONFIGURE_MAXIMUM_TASKS 1
37#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
38
39#define CONFIGURE_INIT
40
41#include <rtems/confdefs.h>
42
43/* end of file */
Note: See TracBrowser for help on using the repository browser.