mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user