Porting old EXT driver implementation to Chibi_19

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
dflogeras
Posts: 232
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 8 times
Been thanked: 22 times

Porting old EXT driver implementation to Chibi_19

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Porting old EXT driver implementation to Chibi_19

Post 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
dflogeras
Posts: 232
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 8 times
Been thanked: 22 times

Re: Porting old EXT driver implementation to Chibi_19

Post 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
Post Reply