xtensa/esp32: Fix default GPIO function when no option is provided
This commit is contained in:
parent
9c366aad94
commit
23f0d8c17b
|
@ -222,7 +222,7 @@ int esp32_configgpio(int pin, gpio_pinattr_t attr)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
func |= (uint32_t)((2 >> FUNCTION_SHIFT) << MCU_SEL_S);
|
func |= (uint32_t)(PIN_FUNC_GPIO << MCU_SEL_S);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((attr & OPEN_DRAIN) != 0)
|
if ((attr & OPEN_DRAIN) != 0)
|
||||||
|
|
Loading…
Reference in New Issue