mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Fix gpio outputs from being configured as interrupts in stm32f0l0g0 gpio driver
This commit is contained in:
committed by
Xiang Xiao
parent
d5f45dc33b
commit
a40f07640f
@@ -307,7 +307,7 @@ int stm32_configgpio(uint32_t cfgset)
|
|||||||
* Should it configured as an EXTI interrupt?
|
* Should it configured as an EXTI interrupt?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((cfgset & GPIO_EXTI) != 0)
|
if ((pinmode != GPIO_MODER_OUTPUT) && ((cfgset & GPIO_EXTI) != 0))
|
||||||
{
|
{
|
||||||
uint32_t regaddr;
|
uint32_t regaddr;
|
||||||
int shift;
|
int shift;
|
||||||
|
|||||||
Reference in New Issue
Block a user