Skip to content

Commit e67b7f8

Browse files
committed
RP2040: us_ticker: use API to force a timer event and get an interrupt
us_ticker_irq_handler() must only be called from interrupt context
1 parent ec7cc4e commit e67b7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_RASPBERRYPI/TARGET_RP2040/us_ticker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void us_ticker_set_interrupt(timestamp_t timestamp)
9999

100100
void us_ticker_fire_interrupt(void)
101101
{
102-
us_ticker_irq_handler();
102+
hardware_alarm_force_irq(alarm_num);
103103
}
104104

105105
void us_ticker_disable_interrupt(void)

0 commit comments

Comments
 (0)