mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-10 09:55:47 +00:00
fix(gpio): fix IO output enable control
oen_sel and oen_inv_sel fields from func_out_sel_cfg register
This commit is contained in:
@@ -101,9 +101,9 @@ static void setup_bus(spi_host_device_t host_id)
|
||||
int wp_pin = spi_periph_signal[host_id].spiwp_iomux_pin;
|
||||
int hd_pin = spi_periph_signal[host_id].spihd_iomux_pin;
|
||||
gpio_iomux_input(wp_pin, spi_periph_signal[host_id].func, spi_periph_signal[host_id].spiwp_in);
|
||||
gpio_iomux_output(wp_pin, spi_periph_signal[host_id].func, false);
|
||||
gpio_iomux_output(wp_pin, spi_periph_signal[host_id].func);
|
||||
gpio_iomux_input(hd_pin, spi_periph_signal[host_id].func, spi_periph_signal[host_id].spihd_in);
|
||||
gpio_iomux_output(hd_pin, spi_periph_signal[host_id].func, false);
|
||||
gpio_iomux_output(hd_pin, spi_periph_signal[host_id].func);
|
||||
#endif //CONFIG_ESPTOOLPY_FLASHMODE_QIO || CONFIG_ESPTOOLPY_FLASHMODE_QOUT
|
||||
//currently the SPI bus for main flash chip is initialized through GPIO matrix
|
||||
} else if (host_id == SPI2_HOST) {
|
||||
|
||||
Reference in New Issue
Block a user