From f89cf8e8c4996bb00430953ef9947fba33ccaf63 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 29 Jun 2021 15:37:06 +0200 Subject: validation: Add CallWithinISR() Update #3269. --- testsuites/validation/tx-support.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'testsuites/validation/tx-support.h') 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 +#include #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 -- cgit v1.2.3