summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/ticker/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/samples/ticker/system.h')
-rw-r--r--testsuites/samples/ticker/system.h37
1 files changed, 1 insertions, 36 deletions
diff --git a/testsuites/samples/ticker/system.h b/testsuites/samples/ticker/system.h
index ec17872b87..94b8d9f4ef 100644
--- a/testsuites/samples/ticker/system.h
+++ b/testsuites/samples/ticker/system.h
@@ -16,6 +16,7 @@
#include <rtems.h>
#include <inttypes.h>
#include "../../support/include/buffer_test_io.h"
+#include "tmacros.h"
/* functions */
@@ -53,42 +54,6 @@ extern rtems_name Task_name[ 4 ]; /* array of task names */
#include <rtems/confdefs.h>
/*
- * Handy macros and static inline functions
- */
-
-/*
- * Macro to hide the ugliness of printing the time.
- */
-
-#define print_time(_s1, _tb, _s2) \
- do { \
- printf( "%s%02" PRId32 ":%02" PRId32 ":%02" PRId32 " %02" PRId32 "/%02" PRId32 "/%04" PRId32 "%s", \
- _s1, (_tb)->hour, (_tb)->minute, (_tb)->second, \
- (_tb)->month, (_tb)->day, (_tb)->year, _s2 ); \
- } while ( 0 )
-
-/*
- * Macro to print an task name that is composed of ASCII characters.
- *
- */
-
-#define put_name( _name, _crlf ) \
- do { \
- uint32_t c0, c1, c2, c3; \
- \
- c0 = ((_name) >> 24) & 0xff; \
- c1 = ((_name) >> 16) & 0xff; \
- c2 = ((_name) >> 8) & 0xff; \
- c3 = (_name) & 0xff; \
- putchar( (char)c0 ); \
- if ( c1 ) putchar( (char)c1 ); \
- if ( c2 ) putchar( (char)c2 ); \
- if ( c3 ) putchar( (char)c3 ); \
- if ( (_crlf) ) \
- putchar( '\n' ); \
- } while (0)
-
-/*
* This allows us to view the "Test_task" instantiations as a set
* of numbered tasks by eliminating the number of application
* tasks created.