diff options
Diffstat (limited to 'hello/posix_hello_world/test.c')
-rw-r--r-- | hello/posix_hello_world/test.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/hello/posix_hello_world/test.c b/hello/posix_hello_world/test.c new file mode 100644 index 0000000..0386b5b --- /dev/null +++ b/hello/posix_hello_world/test.c @@ -0,0 +1,34 @@ +/* + * Simple test program -- simplified version of sample test hello. + */ + +#include <bsp.h> + +#include <stdio.h> +#include <stdlib.h> + +void *POSIX_Init( + void *argument +) +{ + printf( "\n\n*** HELLO WORLD TEST ***\n" ); + printf( "Hello World\n" ); + printf( "*** END OF HELLO WORLD TEST ***\n" ); + exit( 0 ); +} + +/* configuration information */ + +/* NOTICE: the clock driver is explicitly disabled */ +#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER + +#define CONFIGURE_POSIX_INIT_THREAD_TABLE + +#define CONFIGURE_MAXIMUM_POSIX_THREADS 1 + +#define CONFIGURE_INIT + +#include <rtems/confdefs.h> + +/* end of file */ |