Page 1 of 1
STM32L4 RTC interrupts ?
Posted: Sun Jul 08, 2018 3:18 pm
by geoffrey.brown
I can't seem to find the support for the RTC Alarm interrupts. In other threads there is some indication that these used to be handled (e.g. for the STM32F4) through the EXTI driver, but that doesn't seem to be the case anymore. How are RTC interrupts handled and where ? If not, what I need to touch for the shortest path to RTC interrupts.
Geoffrey
Re: STM32L4 RTC interrupts ?
Posted: Sun Jul 08, 2018 4:27 pm
by Giovanni
Hi,
The RTCv2 requires a change for alarms handling now that EXT is gone, in the meanwhile you may enable the RTC EXTI channel and handle the IRQ directly.
Giovanni
Re: STM32L4 RTC interrupts ?
Posted: Sun Jul 08, 2018 6:20 pm
by geoffrey.brown
Thanks ! I had pretty much come to that conclusion, but wanted to make sure that was the simplest path.
Geoffrey
Re: STM32L4 RTC interrupts ?
Posted: Mon Aug 13, 2018 6:58 pm
by faisal
So we would create a new OSAL_IRQ_HANDLER(VectorE4) [RTC Alarm as an example], and manipulate the NVIC and EXTI registers directly - or is there a cleaner way to do it with existing ChibiOS APIs?
Re: STM32L4 RTC interrupts ?
Posted: Tue Aug 14, 2018 7:07 am
by Giovanni
Hi,
Exactly that way, it should offer a callback just like RTCv1 does.
I would just add some kind of EXTIv1 mini-driver (macros basically) in order to not make drivers touch EXTI registers directly (PAL, RTC and possibly others).
Giovanni