summaryrefslogtreecommitdiff
path: root/test/freertos/fixtures/tx_user.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/freertos/fixtures/tx_user.h')
-rw-r--r--test/freertos/fixtures/tx_user.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/freertos/fixtures/tx_user.h b/test/freertos/fixtures/tx_user.h
new file mode 100644
index 00000000..834e711e
--- /dev/null
+++ b/test/freertos/fixtures/tx_user.h
@@ -0,0 +1,35 @@
+/***************************************************************************
+ * Copyright (C) 2026 Eclipse ThreadX contributors
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the MIT License which is available at
+ * https://opensource.org/licenses/MIT.
+ *
+ * AI Disclosure: This file was largely AI-generated by Claude Code (Opus 5).
+ * The AI-generated portions may be considered public domain (CC0-1.0)
+ * and not subject to the project's licence. The human contributor has
+ * reviewed and verified that the code is correct.
+ *
+ * SPDX-License-Identifier: MIT and CC0-1.0
+ **************************************************************************/
+
+/**************************************************************************/
+/** */
+/** ThreadX Component */
+/** */
+/** FreeRTOS compatibility layer regression test ThreadX settings */
+/** */
+/**************************************************************************/
+
+/* Every other ThreadX setting is left at its default; only the extension the
+ compatibility layer requires is defined here. */
+
+#ifndef TX_USER_H
+#define TX_USER_H
+
+/* The layer stores a back pointer to its own task structure in each thread
+ control block, as documented in the layer's readme.md. Without this the
+ layer does not compile. */
+#define TX_THREAD_USER_EXTENSION VOID *txfr_thread_ptr;
+
+#endif /* #ifndef TX_USER_H */