Lines Matching refs:io_nums
360 …int io_nums[] = {bus_config->data0_io_num, bus_config->data1_io_num, bus_config->data2_io_num, bus… in check_iomux_pins_oct() local
364 for (size_t i = 0; i < sizeof(io_nums)/sizeof(io_nums[0]); i++) { in check_iomux_pins_oct()
365 if (io_nums[i] >= 0 && io_nums[i] != io_mux_nums[i]) { in check_iomux_pins_oct()
414 …int io_nums[] = {bus_config->data0_io_num, bus_config->data1_io_num, bus_config->data2_io_num, bus… in bus_iomux_pins_set_oct() local
419 for (size_t i = 0; i < sizeof(io_nums)/sizeof(io_nums[0]); i++) { in bus_iomux_pins_set_oct()
420 if (io_nums[i] > 0) { in bus_iomux_pins_set_oct()
421 gpio_iomux_in(io_nums[i], io_signals[i]); in bus_iomux_pins_set_oct()
423 gpio_iomux_out(io_nums[i], SPI2_FUNC_NUM_OCT, false); in bus_iomux_pins_set_oct()
658 …int io_nums[] = {bus_config->data4_io_num, bus_config->data5_io_num, bus_config->data6_io_num, bus… in spicommon_bus_initialize_io() local
663 for (size_t i = 0; i < sizeof(io_nums) / sizeof(io_nums[0]); i++) { in spicommon_bus_initialize_io()
664 if (io_nums[i] >= 0) { in spicommon_bus_initialize_io()
665 gpio_set_direction(io_nums[i], GPIO_MODE_INPUT_OUTPUT); in spicommon_bus_initialize_io()
666 esp_rom_gpio_connect_out_signal(io_nums[i], io_signals[i][0], false, false); in spicommon_bus_initialize_io()
667 esp_rom_gpio_connect_in_signal(io_nums[i], io_signals[i][1], false); in spicommon_bus_initialize_io()
669 PIN_INPUT_ENABLE(GPIO_PIN_MUX_REG[io_nums[i]]); in spicommon_bus_initialize_io()
671 gpio_hal_iomux_func_sel(GPIO_PIN_MUX_REG[io_nums[i]], FUNC_GPIO); in spicommon_bus_initialize_io()