From d259d6f6d661e05f0bc2c2e3a9efa5fb765c75a9 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Mon, 11 Jul 2022 22:10:41 +0300 Subject: [PATCH] bdk: watchdog: clear timer interrupt also in handling --- bdk/soc/timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bdk/soc/timer.c b/bdk/soc/timer.c index 5c3338e..2f25380 100644 --- a/bdk/soc/timer.c +++ b/bdk/soc/timer.c @@ -96,6 +96,7 @@ void watchdog_end() TMR(TIMER_WDT4_UNLOCK_PATTERN) = TIMER_MAGIC_PTRN; TMR(TIMER_WDT4_COMMAND) = TIMER_START_CNT; // Re-arm to clear any interrupts. TMR(TIMER_WDT4_COMMAND) = TIMER_CNT_DISABLE; + TMR(TIMER_TMR9_TMR_PCR) = TIMER_INTR_CLR; } void watchdog_handle()