diff options
Diffstat (limited to 'testsuites/validation/tx-support.h')
-rw-r--r-- | testsuites/validation/tx-support.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h index 932584b168..9d5a51e461 100644 --- a/testsuites/validation/tx-support.h +++ b/testsuites/validation/tx-support.h @@ -38,6 +38,7 @@ #define _TX_SUPPORT_H #include <rtems.h> +#include <rtems/score/atomic.h> #ifdef __cplusplus extern "C" { @@ -99,6 +100,19 @@ void RestoreRunnerMode( void ); void RestoreRunnerPriority( void ); +typedef struct { + Chain_Node node; + void ( *handler )( void * ); + void *arg; + Atomic_Uint done; +} CallWithinISRRequest; + +void CallWithinISR( void ( *handler )( void * ), void *arg ); + +void CallWithinISRSubmit( CallWithinISRRequest *request ); + +void CallWithinISRWait( const CallWithinISRRequest *request ); + /** @} */ #ifdef __cplusplus |