mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
arch/tricore: Suspend stm when CPU stops
Fix break point cause suspend stm still running cause timer paused. Signed-off-by: panzihao <panzihao@xiaomi.com>
This commit is contained in:
parent
52ae08196d
commit
191e250cc3
1 changed files with 2 additions and 0 deletions
|
|
@ -309,6 +309,8 @@ tricore_systimer_initialize(volatile void *tbase, int irq, uint64_t freq)
|
|||
|
||||
oneshot_count_init(&priv->lower, (uint32_t)freq);
|
||||
|
||||
IfxStm_setSuspendMode(priv->tbase, IfxStm_SuspendMode_hard);
|
||||
|
||||
IfxStm_setCompareControl(tbase,
|
||||
IfxStm_Comparator_0,
|
||||
IfxStm_ComparatorOffset_0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue