/hal_espressif-3.6.0/components/driver/ |
D | spi_common.c | 355 static bool check_iomux_pins_oct(spi_host_device_t host, const spi_bus_config_t* bus_config) in check_iomux_pins_oct() argument 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() 361 …bus_config->sclk_io_num, bus_config->data4_io_num, bus_config->data5_io_num, bus_config->data6_io_… in check_iomux_pins_oct() 373 static bool check_iomux_pins_quad(spi_host_device_t host, const spi_bus_config_t* bus_config) in check_iomux_pins_quad() argument 375 if (bus_config->sclk_io_num>=0 && in check_iomux_pins_quad() 376 bus_config->sclk_io_num != spi_periph_signal[host].spiclk_iomux_pin) { in check_iomux_pins_quad() 379 if (bus_config->quadwp_io_num>=0 && in check_iomux_pins_quad() 380 bus_config->quadwp_io_num != spi_periph_signal[host].spiwp_iomux_pin) { in check_iomux_pins_quad() 383 if (bus_config->quadhd_io_num>=0 && in check_iomux_pins_quad() 384 bus_config->quadhd_io_num != spi_periph_signal[host].spihd_iomux_pin) { in check_iomux_pins_quad() [all …]
|
D | spi_slave.c | 107 esp_err_t spi_slave_initialize(spi_host_device_t host, const spi_bus_config_t *bus_config, const sp… in spi_slave_initialize() argument 122 …SPI_CHECK((bus_config->intr_flags & (ESP_INTR_FLAG_HIGH|ESP_INTR_FLAG_EDGE|ESP_INTR_FLAG_INTRDISAB… in spi_slave_initialize() 124 …SPI_CHECK((bus_config->intr_flags & ESP_INTR_FLAG_IRAM)==0, "ESP_INTR_FLAG_IRAM should be disabled… in spi_slave_initialize() 149 …err = spicommon_bus_initialize_io(host, bus_config, SPICOMMON_BUSFLAG_SLAVE|bus_config->flags, &sp… in spi_slave_initialize() 166 dma_desc_ct = (bus_config->max_transfer_sz + SPI_MAX_DMA_LEN - 1) / SPI_MAX_DMA_LEN; in spi_slave_initialize() 192 int flags = bus_config->intr_flags | ESP_INTR_FLAG_INTRDISABLED; in spi_slave_initialize()
|
D | spi_slave_hd.c | 59 esp_err_t spi_slave_hd_init(spi_host_device_t host_id, const spi_bus_config_t *bus_config, in spi_slave_hd_init() argument 98 …ret = spicommon_bus_initialize_io(host_id, bus_config, SPICOMMON_BUSFLAG_SLAVE | bus_config->flags… in spi_slave_hd_init() 104 !(bus_config->flags & SPICOMMON_BUSFLAG_NATIVE_PINS)); in spi_slave_hd_init() 122 …uint32_t total_desc_size = spi_slave_hd_hal_get_total_desc_size(&host->hal, bus_config->max_transf… in spi_slave_hd_init()
|
/hal_espressif-3.6.0/components/esp_lcd/test/ |
D | test_i80_lcd_panel.c | 16 esp_lcd_i80_bus_config_t bus_config = { variable 32 TEST_ESP_OK(esp_lcd_new_i80_bus(&bus_config, &i80_bus)); 78 esp_lcd_i80_bus_config_t bus_config = { variable 94 TEST_ESP_OK(esp_lcd_new_i80_bus(&bus_config, &i80_bus)); 138 esp_lcd_i80_bus_config_t bus_config = { variable 155 TEST_ESP_OK(esp_lcd_new_i80_bus(&bus_config, &i80_buses[i])); 157 TEST_ASSERT_EQUAL(ESP_ERR_NOT_FOUND, esp_lcd_new_i80_bus(&bus_config, &i80_buses[0])); 182 esp_lcd_i80_bus_config_t bus_config = { variable 198 TEST_ESP_OK(esp_lcd_new_i80_bus(&bus_config, &i80_bus_handle)); 217 esp_lcd_i80_bus_config_t bus_config = { variable [all …]
|
/hal_espressif-3.6.0/components/esp_lcd/src/ |
D | esp_lcd_panel_io_i2s.c | 54 …t i2s_lcd_configure_gpio(esp_lcd_i80_bus_handle_t bus, const esp_lcd_i80_bus_config_t *bus_config); 118 esp_err_t esp_lcd_new_i80_bus(const esp_lcd_i80_bus_config_t *bus_config, esp_lcd_i80_bus_handle_t … in esp_lcd_new_i80_bus() argument 122 ESP_GOTO_ON_FALSE(bus_config && ret_bus, ESP_ERR_INVALID_ARG, err, TAG, "invalid argument"); in esp_lcd_new_i80_bus() 124 …ESP_GOTO_ON_FALSE(bus_config->bus_width == 8 || bus_config->bus_width == 16, ESP_ERR_INVALID_ARG, … in esp_lcd_new_i80_bus() 125 TAG, "invalid bus width:%d", bus_config->bus_width); in esp_lcd_new_i80_bus() 126 size_t max_transfer_bytes = (bus_config->max_transfer_bytes + 3) & ~0x03; // align up to 4 bytes in esp_lcd_new_i80_bus() 130 max_transfer_bytes = max_transfer_bytes * 16 / bus_config->bus_width + 4; in esp_lcd_new_i80_bus() 152 ret = i2s_lcd_select_periph_clock(bus, bus_config->clk_src); in esp_lcd_new_i80_bus() 174 i2s_ll_tx_set_bits_mod(bus->hal.dev, bus_config->bus_width); in esp_lcd_new_i80_bus() 176 bus->bus_width = bus_config->bus_width; in esp_lcd_new_i80_bus() [all …]
|
D | esp_lcd_panel_io_i80.c | 49 …d_i80_bus_configure_gpio(esp_lcd_i80_bus_handle_t bus, const esp_lcd_i80_bus_config_t *bus_config); 115 esp_err_t esp_lcd_new_i80_bus(const esp_lcd_i80_bus_config_t *bus_config, esp_lcd_i80_bus_handle_t … in esp_lcd_new_i80_bus() argument 119 ESP_GOTO_ON_FALSE(bus_config && ret_bus, ESP_ERR_INVALID_ARG, err, TAG, "invalid argument"); in esp_lcd_new_i80_bus() 120 size_t num_dma_nodes = bus_config->max_transfer_bytes / DMA_DESCRIPTOR_BUFFER_MAX_SIZE + 1; in esp_lcd_new_i80_bus() 141 ret = lcd_i80_select_periph_clock(bus, bus_config->clk_src); in esp_lcd_new_i80_bus() 142 ESP_GOTO_ON_ERROR(ret, err, TAG, "select periph clock %d failed", bus_config->clk_src); in esp_lcd_new_i80_bus() 157 lcd_ll_set_data_width(bus->hal.dev, bus_config->bus_width); in esp_lcd_new_i80_bus() 167 ret = lcd_i80_bus_configure_gpio(bus, bus_config); in esp_lcd_new_i80_bus() 499 …cd_i80_bus_configure_gpio(esp_lcd_i80_bus_handle_t bus, const esp_lcd_i80_bus_config_t *bus_config) in lcd_i80_bus_configure_gpio() argument 503 bool valid_gpio = (bus_config->wr_gpio_num >= 0) && (bus_config->dc_gpio_num >= 0); in lcd_i80_bus_configure_gpio() [all …]
|
/hal_espressif-3.6.0/examples/storage/ext_flash_fatfs/main/ |
D | ext_flash_fatfs_example_main.c | 93 const spi_bus_config_t bus_config = { in example_init_ext_flash() local 112 bus_config.mosi_io_num, bus_config.miso_io_num, in example_init_ext_flash() 113 bus_config.sclk_io_num, device_config.cs_io_num in example_init_ext_flash() 117 ESP_ERROR_CHECK(spi_bus_initialize(VSPI_HOST, &bus_config, 1)); in example_init_ext_flash()
|
/hal_espressif-3.6.0/examples/peripherals/lcd/lvgl/main/ |
D | lvgl_example_main.c | 91 esp_lcd_i80_bus_config_t bus_config = { in app_main() local 107 ESP_ERROR_CHECK(esp_lcd_new_i80_bus(&bus_config, &i80_bus)); in app_main()
|
/hal_espressif-3.6.0/components/driver/include/driver/ |
D | spi_slave.h | 107 esp_err_t spi_slave_initialize(spi_host_device_t host, const spi_bus_config_t *bus_config, const sp…
|
D | spi_common.h | 156 esp_err_t spi_bus_initialize(spi_host_device_t host_id, const spi_bus_config_t *bus_config, spi_dma…
|
D | spi_slave_hd.h | 101 esp_err_t spi_slave_hd_init(spi_host_device_t host_id, const spi_bus_config_t *bus_config,
|
D | spi_common_internal.h | 174 esp_err_t spicommon_bus_initialize_io(spi_host_device_t host, const spi_bus_config_t *bus_config, u…
|
/hal_espressif-3.6.0/components/driver/test/ |
D | test_spi_master.c | 541 spi_bus_config_t bus_config; variable 546 memset(&bus_config, 0, sizeof(spi_bus_config_t)); 549 bus_config.miso_io_num = -1; 550 bus_config.mosi_io_num = PIN_NUM_MOSI; 551 bus_config.sclk_io_num = PIN_NUM_CLK; 552 bus_config.quadwp_io_num = -1; 553 bus_config.quadhd_io_num = -1; 571 TEST_ESP_OK(spi_bus_initialize(host, &bus_config, SPI_DMA_CH_AUTO)); 583 TEST_ESP_OK(spi_bus_initialize(host, &bus_config, SPI_DMA_CH_AUTO));
|
D | test_sdio.c | 157 spi_bus_config_t bus_config; in init_essl() local 176 bus_config = (spi_bus_config_t) { in init_essl() 183 err = spi_bus_initialize(TEST_SDSPI_HOST, &bus_config, TEST_SDSPI_DMACHAN); in init_essl()
|
/hal_espressif-3.6.0/examples/peripherals/sdio/host/main/ |
D | app_main.c | 203 spi_bus_config_t bus_config = { in slave_init() local 211 err = spi_bus_initialize(dev_config.host_id, &bus_config, 1); in slave_init()
|
/hal_espressif-3.6.0/components/esp_lcd/include/ |
D | esp_lcd_panel_io.h | 167 esp_err_t esp_lcd_new_i80_bus(const esp_lcd_i80_bus_config_t *bus_config, esp_lcd_i80_bus_handle_t …
|
/hal_espressif-3.6.0/components/sdmmc/test/ |
D | test_sd.c | 200 spi_bus_config_t bus_config = { in test_sdspi_init_bus() local 207 esp_err_t err = spi_bus_initialize(host, &bus_config, dma_chan); in test_sdspi_init_bus()
|
/hal_espressif-3.6.0/docs/zh_CN/api-guides/ |
D | error-handling.rst | 188 ESP_ERROR_CHECK(spi_bus_initialize(host, bus_config, dma_chan));
|
/hal_espressif-3.6.0/docs/en/api-guides/ |
D | error-handling.rst | 178 ESP_ERROR_CHECK(spi_bus_initialize(host, bus_config, dma_chan));
|
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/ |
D | spi_slave.rst | 76 …alize`. Make sure to set the correct I/O pins in the struct :cpp:type:`bus_config`. Set the unused…
|