Page 1 of 1

RTCv2 and stm32_registry.h

Posted: Tue Feb 09, 2016 8:08 pm
by lilvinz
Hi again,

STM32L4xx has RTC periodic wakeups. This seems to be wrong in the stm32_registry.h.
While researching this, i wondered why all stm32 do have STM32_RTC_HAS_INTERRUPTS set to FALSE even though at least some do have interrupts. Also in rtc_lld.h STM32_RTC_HAS_INTERRUPTS is used to set if the driver supports callbacks but there seems to be no implementation of rtc_lld_set_callback().

Cheers

Vinz

Re: RTCv2 and stm32_registry.h

Posted: Tue Feb 09, 2016 9:52 pm
by Giovanni
Hi,

RTCv2s have their interrupt connected to EXTI, you need to use the EXT driver to handle the callback.

Giovanni

Re: RTCv2 and stm32_registry.h

Posted: Tue Feb 09, 2016 10:44 pm
by lilvinz
Thanks, that makes sense.

Still stm32_registry.h for STM32L4xx has to be changed to

Code: Select all

#define STM32_RTC_HAS_PERIODIC_WAKEUPS      TRUE


Cheers

Vinz

Re: RTCv2 and stm32_registry.h

Posted: Sun Feb 14, 2016 10:58 am
by Giovanni
Fixed, thanks.

Giovanni