Home
last modified time | relevance | path

Searched refs:cs_io_num (Results 1 – 7 of 7) sorted by relevance

/hal_espressif-2.7.6/components/spi_flash/
Desp_flash_spi_init.c120 int cs_io_num = config->cs_io_num; in cs_initialize() local
124 uint32_t iomux_reg = GPIO_PIN_MUX_REG[cs_io_num]; in cs_initialize()
134 GPIO.enable_w1ts.val = (0x1 << cs_io_num); in cs_initialize()
136 if (cs_io_num < 32) { in cs_initialize()
137 GPIO.enable_w1ts = (0x1 << cs_io_num); in cs_initialize()
139 GPIO.enable1_w1ts.data = (0x1 << (cs_io_num - 32)); in cs_initialize()
142 GPIO.pin[cs_io_num].pad_driver = 0; in cs_initialize()
143 esp_rom_gpio_connect_out_signal(cs_io_num, spics_out, false, false); in cs_initialize()
145 esp_rom_gpio_connect_in_signal(cs_io_num, spics_in, false); in cs_initialize()
157 if (!GPIO_IS_VALID_OUTPUT_GPIO(config->cs_io_num)) { in spi_bus_add_flash_device()
/hal_espressif-2.7.6/components/driver/
Dspi_common.c570 void spicommon_cs_initialize(spi_host_device_t host, int cs_io_num, int cs_num, int force_gpio_matr… in spicommon_cs_initialize() argument
572 … if (!force_gpio_matrix && cs_io_num == spi_periph_signal[host].spics0_iomux_pin && cs_num == 0) { in spicommon_cs_initialize()
574 gpio_iomux_in(cs_io_num, spi_periph_signal[host].spics_in); in spicommon_cs_initialize()
575 gpio_iomux_out(cs_io_num, spi_periph_signal[host].func, false); in spicommon_cs_initialize()
578 if (GPIO_IS_VALID_OUTPUT_GPIO(cs_io_num)) { in spicommon_cs_initialize()
579 gpio_set_direction(cs_io_num, GPIO_MODE_INPUT_OUTPUT); in spicommon_cs_initialize()
580 …esp_rom_gpio_connect_out_signal(cs_io_num, spi_periph_signal[host].spics_out[cs_num], false, false… in spicommon_cs_initialize()
582 gpio_set_direction(cs_io_num, GPIO_MODE_INPUT); in spicommon_cs_initialize()
584 …if (cs_num == 0) esp_rom_gpio_connect_in_signal(cs_io_num, spi_periph_signal[host].spics_in, false… in spicommon_cs_initialize()
585 PIN_INPUT_ENABLE(GPIO_PIN_MUX_REG[cs_io_num]); in spicommon_cs_initialize()
[all …]
/hal_espressif-2.7.6/components/spi_flash/include/
Desp_flash_spi_init.h27 int cs_io_num; ///< GPIO pin to output the CS signal member
/hal_espressif-2.7.6/examples/storage/ext_flash_fatfs/main/
Dext_flash_fatfs_example_main.c104 .cs_io_num = VSPI_IOMUX_PIN_NUM_CS, in example_init_ext_flash()
113 bus_config.sclk_io_num, device_config.cs_io_num in example_init_ext_flash()
/hal_espressif-2.7.6/components/spi_flash/test/
Dtest_esp_flash.c178 .cs_io_num = SPI1_CS_IO, \
200 .cs_io_num = VSPI_PIN_NUM_CS,
212 .cs_io_num = FSPI_PIN_NUM_CS,
221 .cs_io_num = HSPI_PIN_NUM_CS,
234 .cs_io_num = FSPI_PIN_NUM_CS,
250 .cs_io_num = FSPI_PIN_NUM_CS,
386 .cs_io_num = test_cfg->cs_io_num, in setup_new_chip()
/hal_espressif-2.7.6/components/driver/include/driver/
Dspi_common_internal.h206 void spicommon_cs_initialize(spi_host_device_t host, int cs_io_num, int cs_num, int force_gpio_matr…
/hal_espressif-2.7.6/components/driver/test/
Dtest_spi_bus_lock.c236 .cs_io_num = TEST_BUS_PIN_NUM_CS, in test_bus_lock()