cancel
Showing results for 
Search instead for 
Did you mean: 

Can a pin that is configured as an external interrupt be also read?

Hrishikesh
Senior

Pretty much what the Q above says. Is it possible to do a HAL_GPIO_ReadPin on a pin that has been configured as an external interrupt?

3 REPLIES 3

Yes.

JW

As far as I'm aware GPIOx->IDR is always an accurate representation of the current pin state whether in GPIO or AF modes. Analogue IN turns off the schmitt trigger on the digital input side, so perhaps not then.

Should be workable on all STM32 models/families

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Thanks!