Skip to content

Commit 410ef0c

Browse files
Merge pull request #5289 from LMESTM/test_api_ticker
STM32: RTC: Call irq_handler whenever interrupt fires
2 parents de3784f + e15ebd3 commit 410ef0c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

targets/TARGET_STM/rtc_api.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,10 @@ int rtc_isenabled(void)
296296

297297
static void RTC_IRQHandler(void)
298298
{
299+
/* Update HAL state */
299300
HAL_RTCEx_WakeUpTimerIRQHandler(&RtcHandle);
300-
}
301-
302-
void HAL_RTCEx_WakeUpTimerEventCallback(RTC_HandleTypeDef *hrtc)
303-
{
301+
/* In case of registered handler, call it. */
304302
if (irq_handler) {
305-
// Fire the user callback
306303
irq_handler();
307304
}
308305
}

0 commit comments

Comments
 (0)