summaryrefslogtreecommitdiffstats
path: root/testsuites/validation/tx-support.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-29 15:37:06 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-26 19:57:31 +0200
commitf89cf8e8c4996bb00430953ef9947fba33ccaf63 (patch)
treeaa022f916c722b9fff4a2b4b81c0c2d9d86add74 /testsuites/validation/tx-support.h
parentb910e60e606f5bfaa378ed07c287b12c46d0b9bc (diff)
downloadrtems-f89cf8e8c4996bb00430953ef9947fba33ccaf63.tar.bz2
validation: Add CallWithinISR()
Update #3269.
Diffstat (limited to '')
-rw-r--r--testsuites/validation/tx-support.h14
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