mirror of
https://github.com/apache/nuttx.git
synced 2026-09-12 05:30:20 +00:00
arch/tricore: initialize spinlock used by tricore systimer
Add explicit spin_lock_init in tricore_systimer_initialize() for the lock used by tricore systimer. Signed-off-by: Haokun Dong <donghaokun@lixiang.com>
This commit is contained in:
parent
255618d838
commit
cbe13affa1
1 changed files with 1 additions and 0 deletions
|
|
@ -303,6 +303,7 @@ tricore_systimer_initialize(volatile void *tbase, int irq, uint64_t freq)
|
|||
struct tricore_systimer_lowerhalf_s *priv = &g_tricore_oneshot_lowerhalf;
|
||||
|
||||
priv->tbase = tbase;
|
||||
spin_lock_init(&priv->lock);
|
||||
|
||||
ASSERT(freq <= UINT32_MAX);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue