This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 930cc984a2c arch/tricore: Fix build errors in Tricore architecture
930cc984a2c is described below
commit 930cc984a2c683837c42d9a845d97d62fa2e304c
Author: wangchengdong <[email protected]>
AuthorDate: Mon Dec 1 20:38:07 2025 +0800
arch/tricore: Fix build errors in Tricore architecture
Fix build errors in the Tricore architecture caused by the missing `lock`
member in `struct tricore_systimer_lowerhalf_s`, as well as the missing
definition of the `IFX_CFG_CPU_CLOCK_FREQUENCY` macro.
Signed-off-by: Chengdong Wang <[email protected]>
---
arch/tricore/src/common/tricore_systimer.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/tricore/src/common/tricore_systimer.c
b/arch/tricore/src/common/tricore_systimer.c
index e54345962a6..17047b9f29f 100644
--- a/arch/tricore/src/common/tricore_systimer.c
+++ b/arch/tricore/src/common/tricore_systimer.c
@@ -49,6 +49,8 @@
* 40 CPU cycles (100ns at 400Mhz) ~ 10 timer cycles (for 100 Mhz timer).
*/
+#define IFX_CFG_CPU_CLOCK_FREQUENCY 100000000
+
#define TRICORE_SYSTIMER_MIN_DELAY \
(40ull * SCU_FREQUENCY / IFX_CFG_CPU_CLOCK_FREQUENCY)
@@ -65,6 +67,7 @@ struct tricore_systimer_lowerhalf_s
{
struct oneshot_lowerhalf_s lower;
volatile void *tbase;
+ spinlock_t lock;
};
/****************************************************************************