Skip to content

Commit 2998893

Browse files
committed
EFM32: fix fire interrupt (set flags)
There's overflow counter that needs to be 0, and CC0 flag set. Fixes #5051
1 parent c6f655c commit 2998893

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/us_ticker.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ void us_ticker_set_interrupt(timestamp_t timestamp)
213213

214214
void us_ticker_fire_interrupt(void)
215215
{
216+
ticker_int_cnt = 0;
217+
TIMER_IntSet(US_TICKER_TIMER, TIMER_IF_CC0);
216218
NVIC_SetPendingIRQ(US_TICKER_TIMER_IRQ);
217219
}
218220

0 commit comments

Comments
 (0)