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
STM32L4 RTC interrupts ?
Moderators: RoccoMarco, barthess
-
- Posts: 87
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 15 times
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: STM32L4 RTC interrupts ?
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
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
-
- Posts: 87
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 15 times
Re: STM32L4 RTC interrupts ?
Thanks ! I had pretty much come to that conclusion, but wanted to make sure that was the simplest path.
Geoffrey
Geoffrey
Re: STM32L4 RTC interrupts ?
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?
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: STM32L4 RTC interrupts ?
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
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
Who is online
Users browsing this forum: No registered users and 43 guests