Porting old EXT driver implementation to Chibi_19

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

Moderators: barthess, RoccoMarco

dflogeras
Posts: 190
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 2 times
Been thanked: 13 times

Porting old EXT driver implementation to Chibi_19

Postby dflogeras » Mon Mar 09, 2020 9:08 pm

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: 12949
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 732 times
Been thanked: 609 times
Contact:

Re: Porting old EXT driver implementation to Chibi_19

Postby Giovanni » Mon Mar 09, 2020 9:31 pm

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: 190
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 2 times
Been thanked: 13 times

Re: Porting old EXT driver implementation to Chibi_19

Postby dflogeras » Tue Mar 10, 2020 12:15 am

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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 9 guests