diff options
author | Frank Kühndel <frank.kuehndel@embedded-brains.de> | 2021-05-17 07:21:43 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-12 14:01:24 +0200 |
commit | 7c3c11460282e56bd6ca66287a8636114ae9163e (patch) | |
tree | d9fde99efe5923e0d72ea37d9b4ef0527da80315 | |
parent | d16a95e69bbabefd09197bc284f4bc311fa558e0 (diff) |
testsuites/validation/tx-support.h
-rw-r--r-- | testsuites/validation/tx-support.h | 9 | ||||
-rw-r--r-- | testsuites/validation/tx-timer-server.c | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h index 5d4824cef0..9e1ed9d54b 100644 --- a/testsuites/validation/tx-support.h +++ b/testsuites/validation/tx-support.h @@ -353,6 +353,15 @@ typedef enum { */ Timer_States GetTimerState( rtems_id id ); +/** + * @brief Mark the realtime clock as never set. + * + * This function manipulates RTEMS internal data structures to undo the + * effect of rtems_clock_set(). If the clock is not set, the function has no + * effect. + */ +void UnsetClock( void ); + /** @} */ #ifdef __cplusplus diff --git a/testsuites/validation/tx-timer-server.c b/testsuites/validation/tx-timer-server.c index 26a0902e0f..80ba853fb1 100644 --- a/testsuites/validation/tx-timer-server.c +++ b/testsuites/validation/tx-timer-server.c @@ -41,6 +41,7 @@ #include <rtems/test.h> #include <rtems/rtems/timerimpl.h> +#include <rtems/score/todimpl.h> rtems_id GetTimerServerTaskId( void ) { @@ -142,3 +143,8 @@ Timer_States GetTimerState( rtems_id id ) return result; } + +void UnsetClock( void ) +{ + _TOD.is_set = false; +} |