Skip to main content
AGHAZ
Associate II
May 18, 2019
Solved

can someone help me find the equivalent of the EXTI_GetITStatus (EXTI_Line0) instruction with the stm32 HAL library

  • May 18, 2019
  • 3 replies
  • 2209 views

..

This topic has been closed for replies.
Best answer by John Craven

__HAL_GPIO_EXTI_GET_IT

3 replies

John Craven
John CravenBest answer
Senior
May 18, 2019

__HAL_GPIO_EXTI_GET_IT

John Craven
Senior
May 18, 2019

HAL uses macros for most status gets, IT sets and clears, when it seems missing in context sensitive editor always try __HAL_***_

AGHAZ
AGHAZAuthor
Associate II
May 19, 2019

thanks :)

Piranha
Principal III
May 18, 2019

HAL_EXTI_GetPending() does exactly the same.

I use neither SPL, nor HAL, but it took me only few minutes to find it out. The super "secret magic" formula - looking at register code and thinking!

Tesla DeLorean
Guru
May 18, 2019

void EXTI0_IRQHandler(void)

{

 /* EXTI line interrupt detected */

 if(__HAL_GPIO_EXTI_GET_IT(GPIO_PIO_0) != RESET)

 {

  __HAL_GPIO_EXTI_CLEAR_IT(GPIO_PIO_0);

 // ... Do processing

 }

}

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
AGHAZ
AGHAZAuthor
Associate II
May 19, 2019

thank you so much :)