soc: esp32: partial code standardization
Replaces the prefixes of gpio_matrix_in and gpio_matrix_out to unify those function calls on all supported socs. Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
parent
e231d50535
commit
fb1632925e
5 changed files with 11 additions and 11 deletions
|
@ -149,9 +149,9 @@ static int spi_esp32_configure_pin(gpio_pin_t pin, int pin_sig,
|
|||
}
|
||||
|
||||
if (pin_mode == GPIO_INPUT) {
|
||||
esp32_rom_gpio_matrix_in(pin, pin_sig, false);
|
||||
esp_rom_gpio_matrix_in(pin, pin_sig, false);
|
||||
} else {
|
||||
esp32_rom_gpio_matrix_out(pin, pin_sig, false, false);
|
||||
esp_rom_gpio_matrix_out(pin, pin_sig, false, false);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue