diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-06-29 15:37:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-26 19:57:31 +0200 |
commit | f89cf8e8c4996bb00430953ef9947fba33ccaf63 (patch) | |
tree | aa022f916c722b9fff4a2b4b81c0c2d9d86add74 /testsuites/validation/tx-support.h | |
parent | bsp/raspberrypi: Add interrupt get/set affinity (diff) | |
download | rtems-f89cf8e8c4996bb00430953ef9947fba33ccaf63.tar.bz2 |
validation: Add CallWithinISR()
Update #3269.
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 |