cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple EXTI GPIO EVENTS-STM32G0 I would to know is someone could provide some tips on using GPIOs as External Events (EXTI) sources on STM2G0 HAL. Any information is welcome BR Gilberto

GErma.1
Associate III
4 REPLIES 4
Pavel A.
Evangelist III

What do you mean by "external events"?

Using GPIOs as EXTI *interrupt* sources is easy, see examples in the Cube_FW_G0 package. Whether you want to use the "HAL" library for EXTI is another question.

Amel NASRI
ST Employee

Hi @GErma.1​ ,

You should get an answer to your request if you follow this article: How to manage multiple EXTIs with the STM32Cube HAL.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi Very interesting. Os there any way to add some level of debaucing to the switch state detection in isr? BR Gilberto Em qua, 29 de mar de 2023 07:49, ST Community escreveu:

Check out this video on how you can use a timercallback to debounce an EXTI

https://www.youtube.com/watch?v=o0qhmXR5LD0

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.