mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +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);
|
oneshot_count_init(&priv->lower, (uint32_t)freq);
|
||||||
|
|
||||||
|
IfxStm_setSuspendMode(priv->tbase, IfxStm_SuspendMode_hard);
|
||||||
|
|
||||||
IfxStm_setCompareControl(tbase,
|
IfxStm_setCompareControl(tbase,
|
||||||
IfxStm_Comparator_0,
|
IfxStm_Comparator_0,
|
||||||
IfxStm_ComparatorOffset_0,
|
IfxStm_ComparatorOffset_0,
|
||||||
|
|||||||
Reference in New Issue
Block a user