Home
last modified time | relevance | path

Searched refs:bus_config (Results 1 – 20 of 20) sorted by relevance

/hal_espressif-3.6.0/components/driver/
Dspi_common.c355 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()
361bus_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 …]
Dspi_slave.c107 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()
Dspi_slave_hd.c59 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/
Dtest_i80_lcd_panel.c16 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/
Desp_lcd_panel_io_i2s.c54 …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 …]
Desp_lcd_panel_io_i80.c49 …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/
Dext_flash_fatfs_example_main.c93 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/
Dlvgl_example_main.c91 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/
Dspi_slave.h107 esp_err_t spi_slave_initialize(spi_host_device_t host, const spi_bus_config_t *bus_config, const sp…
Dspi_common.h156 esp_err_t spi_bus_initialize(spi_host_device_t host_id, const spi_bus_config_t *bus_config, spi_dma…
Dspi_slave_hd.h101 esp_err_t spi_slave_hd_init(spi_host_device_t host_id, const spi_bus_config_t *bus_config,
Dspi_common_internal.h174 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/
Dtest_spi_master.c541 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));
Dtest_sdio.c157 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/
Dapp_main.c203 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/
Desp_lcd_panel_io.h167 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/
Dtest_sd.c200 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/
Derror-handling.rst188 ESP_ERROR_CHECK(spi_bus_initialize(host, bus_config, dma_chan));
/hal_espressif-3.6.0/docs/en/api-guides/
Derror-handling.rst178 ESP_ERROR_CHECK(spi_bus_initialize(host, bus_config, dma_chan));
/hal_espressif-3.6.0/docs/en/api-reference/peripherals/
Dspi_slave.rst76 …alize`. Make sure to set the correct I/O pins in the struct :cpp:type:`bus_config`. Set the unused…