Fix gpio outputs from being configured as interrupts in stm32f0l0g0 gpio driver
This commit is contained in:
parent
d5f45dc33b
commit
a40f07640f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user