Page 1 of 1

Porting old EXT driver implementation to Chibi_19

Posted: Mon Mar 09, 2020 9:08 pm
by dflogeras
Hi, I have an older project I think I used Chibi_16 vintage. As discussed in this posting:
viewtopic.php?t=3319

We figured out a way to use EXTI17 as a wakeup source. However, I relied on the EXT driver to set up the IRQ.

Now that PAL has replaced EXT, it seems to be only pad-centric (0->15). Is there a way in modern ChibiOS to set up EXTI17 in a generic fashion?

Re: Porting old EXT driver implementation to Chibi_19

Posted: Mon Mar 09, 2020 9:31 pm
by Giovanni
Hi,

There is an EXTI API under EXTIv1, it is used by PAL as an internal interface but can be used by application code, see stm32_exti.h/c.

Giovanni

Re: Porting old EXT driver implementation to Chibi_19

Posted: Tue Mar 10, 2020 12:15 am
by dflogeras
Ahaa, and it looks as though the RTCv2 driver already uses it to set those IRQs up properly. I guess I should have read the driver code first.

Thanks as always,
Dave