xtensa/esp32: Use OR operation when configuring pin driver

This commit is contained in:
Gustavo Henrique Nihei 2021-03-03 19:23:05 -03:00 committed by Abdelatif Guettouche
parent 23f0d8c17b
commit 1aebe47c71
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ int esp32_configgpio(int pin, gpio_pinattr_t attr)
if ((attr & OPEN_DRAIN) != 0)
{
cntrl = (1 << GPIO_PIN_PAD_DRIVER_S);
cntrl |= (1 << GPIO_PIN_PAD_DRIVER_S);
}
regaddr = DR_REG_IO_MUX_BASE + g_pin2func[pin];