diff options
Diffstat (limited to 'testsuites/validation/tx-support.h')
-rw-r--r-- | testsuites/validation/tx-support.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h index 9e1ed9d54b..30bec43b43 100644 --- a/testsuites/validation/tx-support.h +++ b/testsuites/validation/tx-support.h @@ -167,8 +167,32 @@ struct _Thread_Control *GetThread( rtems_id id ); void WaitForExecutionStop( rtems_id task_id ); +typedef enum { + TASK_TIMER_INVALID, + TASK_TIMER_INACTIVE, + TASK_TIMER_TICKS, + TASK_TIMER_REALTIME, + TASK_TIMER_MONOTONIC +} TaskTimerState; + +typedef struct { + TaskTimerState state; + uint64_t expire_ticks; + struct timespec expire_timespec; +} TaskTimerInfo; + +void GetTaskTimerInfo( rtems_id id, TaskTimerInfo *info ); + void ClockTick( void ); +/** + * @brief Simulates a clock tick with the final expire time point of + * UINT64_MAX for all clocks. + * + * This function does not update the clock ticks counter. + */ +void FinalClockTick( void ); + typedef uint32_t ( *GetTimecountHandler )( void ); /** |