source: examples-v2/hello/posix_hello_world/test.c @ c882040

4.11
Last change on this file since c882040 was c882040, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 3, 2011 at 6:00:33 PM

2011-03-03 Joel Sherrill <joel.sherrilL@…>

  • both_hello/test.c, hello_world_c/test.c, posix_hello_world/test.c: Example clean up.
  • Property mode set to 100644
File size: 662 bytes
Line 
1/*
2 *  Simple test program -- simplified version of sample test hello.
3 */
4
5#include <bsp.h>
6#include <stdio.h>
7#include <stdlib.h>
8
9void *POSIX_Init(
10  void *argument
11)
12{
13  printf( "\n\n*** HELLO WORLD TEST ***\n" );
14  printf( "Hello World\n" );
15  printf( "*** END OF HELLO WORLD TEST ***\n" );
16  exit( 0 );
17}
18
19/* configuration information */
20
21/* NOTICE: the clock driver is explicitly disabled */
22#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
23#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
24
25#define CONFIGURE_POSIX_INIT_THREAD_TABLE
26#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
27
28#define CONFIGURE_INIT
29#include <rtems/confdefs.h>
30/* end of file */
Note: See TracBrowser for help on using the repository browser.