mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
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 <wangchengdong@lixiang.com>
This commit is contained in:
committed by
Xiang Xiao
parent
94fae9133f
commit
930cc984a2
@@ -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;
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user