mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
Fix GPIO output
This commit is contained in:
@@ -129,6 +129,14 @@ int bl602_configgpio(gpio_pinset_t cfgset)
|
||||
}
|
||||
|
||||
modifyreg32(regaddr, mask, cfg);
|
||||
|
||||
/* Enable pin output if requested */
|
||||
|
||||
if (!(cfgset & GPIO_INPUT))
|
||||
{
|
||||
modifyreg32(BL602_GPIO_CFGCTL34, 0, (1 << pin));
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user