Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions bsp/Infineon/libraries/HAL_Drivers/drv_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ static rt_err_t ifx_rtc_get_timeval(struct timeval *tv)

return RT_EOK;
}

#ifdef RT_USING_ALARM
void rtc_alarm_callback(void *callback_arg, cyhal_rtc_event_t event);
#endif
static rt_err_t _rtc_init(void)
{
#ifdef BSP_RTC_USING_LSE
Expand Down Expand Up @@ -187,8 +189,10 @@ static rt_err_t _rtc_set_alarm(struct rt_rtc_wkalarm *alarm)
}

#ifdef RT_USING_ALARM
void rtc_alarm_callback(void)
void rtc_alarm_callback(void *callback_arg, cyhal_rtc_event_t event)
{
RT_UNUSED(callback_arg);
RT_UNUSED(event);
rt_interrupt_enter();
rt_alarm_update(0, 0);
rt_interrupt_leave();
Expand Down Expand Up @@ -232,3 +236,4 @@ static int rt_hw_rtc_init(void)

INIT_DEVICE_EXPORT(rt_hw_rtc_init);
#endif
#endif