xtensa/esp32: Fix default GPIO function when no option is provided

This commit is contained in:
Gustavo Henrique Nihei 2021-03-03 19:22:44 -03:00 committed by Abdelatif Guettouche
parent 9c366aad94
commit 23f0d8c17b

View File

@ -222,7 +222,7 @@ int esp32_configgpio(int pin, gpio_pinattr_t attr)
}
else
{
func |= (uint32_t)((2 >> FUNCTION_SHIFT) << MCU_SEL_S);
func |= (uint32_t)(PIN_FUNC_GPIO << MCU_SEL_S);
}
if ((attr & OPEN_DRAIN) != 0)