Fix gpio outputs from being configured as interrupts in stm32f0l0g0 gpio driver

This commit is contained in:
Jorge Rodriguez Herranz 2023-06-29 17:26:39 +02:00 committed by Xiang Xiao
parent d5f45dc33b
commit a40f07640f

View File

@ -307,7 +307,7 @@ int stm32_configgpio(uint32_t cfgset)
* Should it configured as an EXTI interrupt?
*/
if ((cfgset & GPIO_EXTI) != 0)
if ((pinmode != GPIO_MODER_OUTPUT) && ((cfgset & GPIO_EXTI) != 0))
{
uint32_t regaddr;
int shift;