summaryrefslogtreecommitdiff
path: root/test/tx/regression/threadx_test_port.h
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-10-02 10:42:44 -0400
committerGitHub <[email protected]>2026-10-02 10:42:44 -0400
commit93387b0a60382a29579bbad5045c68328e3751df (patch)
tree42be790d602cb76f55090e5a7c418df7ea2b3428 /test/tx/regression/threadx_test_port.h
parent44d7c95c582d415c4ad84527180b29c93c3bf664 (diff)
parent28281cd5647d4671236ca08d19bd18ed15b2265a (diff)
Merge pull request #783 from eclipse-threadx/devv6.5.2.202603_rel
Merged changes ahead of the v6.5.2.202603 release
Diffstat (limited to 'test/tx/regression/threadx_test_port.h')
-rw-r--r--test/tx/regression/threadx_test_port.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/tx/regression/threadx_test_port.h b/test/tx/regression/threadx_test_port.h
index b8502b4d..5d79c8e8 100644
--- a/test/tx/regression/threadx_test_port.h
+++ b/test/tx/regression/threadx_test_port.h
@@ -32,6 +32,11 @@
typedef ALIGN_TYPE TX_TEST_POINTER_WORD;
-#define TX_TEST_STORE_POINTER(a, b) (a) = ((TX_TEST_POINTER_WORD) TX_POINTER_TO_ALIGN_TYPE_CONVERT(b))
+/* TX_POINTER_TO_ALIGN_TYPE_CONVERT is defined only when TX_MISRA_ENABLE is absent,
+ so the conversion is written out here rather than taken from the API. This is
+ test scaffolding storing a pointer in a word wide enough to hold one; it is not
+ kernel source and carries no MISRA obligation of its own. */
+
+#define TX_TEST_STORE_POINTER(a, b) (a) = ((TX_TEST_POINTER_WORD) (ALIGN_TYPE) (b))
#endif