diff options
Diffstat (limited to 'hello/hello_world_c/test.c')
-rw-r--r-- | hello/hello_world_c/test.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/hello/hello_world_c/test.c b/hello/hello_world_c/test.c new file mode 100644 index 0000000..d9354f7 --- /dev/null +++ b/hello/hello_world_c/test.c @@ -0,0 +1,35 @@ +/* + * Simple test program -- simplified version of sample test hello. + * + * $Id$ + */ + +#include <bsp.h> + +#include <stdlib.h> +#include <stdio.h> + +rtems_task Init( + rtems_task_argument ignored +) +{ + 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_RTEMS_INIT_TASKS_TABLE +#define CONFIGURE_MAXIMUM_TASKS 1 + +#define CONFIGURE_INIT + +#include <rtems/confdefs.h> + +/* end of file */ |