diff options
Diffstat (limited to 'c/src/tests/samples/ticker')
-rw-r--r-- | c/src/tests/samples/ticker/init.c | 5 | ||||
-rw-r--r-- | c/src/tests/samples/ticker/system.h | 24 |
2 files changed, 20 insertions, 9 deletions
diff --git a/c/src/tests/samples/ticker/init.c b/c/src/tests/samples/ticker/init.c index 3caa16ecd7..c023a25801 100644 --- a/c/src/tests/samples/ticker/init.c +++ b/c/src/tests/samples/ticker/init.c @@ -21,11 +21,8 @@ * $Id$ */ +#define TEST_INIT #include "system.h" -#undef EXTERN -#define EXTERN -#include "conftbl.h" -#include "gvar.h" rtems_task Init( rtems_task_argument argument diff --git a/c/src/tests/samples/ticker/system.h b/c/src/tests/samples/ticker/system.h index 0bf193dad9..51a9c082df 100644 --- a/c/src/tests/samples/ticker/system.h +++ b/c/src/tests/samples/ticker/system.h @@ -16,14 +16,28 @@ #include <tmacros.h> -/* Miscellaneous */ +/* functions */ -#define EXTERN extern /* external definition */ +rtems_task Init( + rtems_task_argument argument +); -/* macros */ +rtems_task Test_task( + rtems_task_argument argument +); -/* structures */ +/* configuration information */ -#include "gvar.h" +#define CONFIGURE_SPTEST + +#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER +#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER + +#include <confdefs.h> + +/* global variables */ + +TEST_EXTERN rtems_id Task_id[ 4 ]; /* array of task ids */ +TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */ /* end of include file */ |