summaryrefslogtreecommitdiff
path: root/hello/both_hello/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'hello/both_hello/test.c')
-rw-r--r--hello/both_hello/test.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/hello/both_hello/test.c b/hello/both_hello/test.c
new file mode 100644
index 0000000..f8947b9
--- /dev/null
+++ b/hello/both_hello/test.c
@@ -0,0 +1,42 @@
+/*
+ * Simple test program -- simplified version of sample test hello.
+ */
+
+#include <bsp.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+
+rtems_task Init(
+ rtems_task_argument ignored
+)
+{
+ printf( "Classic -- Hello World\n" );
+ rtems_task_delete( RTEMS_SELF );
+}
+
+void *POSIX_Init(
+ void *argument
+)
+{
+ printf( "POSIX -- Hello World\n" );
+ sleep( 1 );
+ exit( 0 );
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+
+/* end of file */