Page 1 of 1

RTC callback setter

Posted: Mon Apr 24, 2017 7:35 am
by neums
Hi,
the function void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) calls rtc_lld_set_callback(rtcp, callback), but the low level function is not defined in rtc_lld.c V2. Is this callback not applicable for RTC_V2?

Thanks

Re: RTC callback setter

Posted: Mon Apr 24, 2017 8:04 am
by Giovanni
Hi,

Currently the callback is handled by EXT, this will change when EXT will be removed in HAL6.

Giovanni

Re: RTC callback setter

Posted: Mon Apr 24, 2017 8:38 am
by neums
So i have to define RTC_SUPPORTS_CALLBACKS to FALSE that the call rtc_lld_set_callback is not implemented and use EXT instead?

Re: RTC callback setter

Posted: Mon Apr 24, 2017 1:54 pm
by Giovanni
Right now you need to use EXT for RTC alarms, after changes it will be an RTC callback like in RTCv1.

Giovanni