Home
last modified time | relevance | path

Searched refs:host_id (Results 1 – 25 of 66) sorted by relevance

123

/hal_espressif-3.6.0/components/driver/
Dspi_common.c51 .host_id = 0, \
64 int host_id; member
187 static esp_err_t alloc_dma_chan(spi_host_device_t host_id, spi_dma_chan_t dma_chan, uint32_t *out_a… in alloc_dma_chan() argument
189 assert(is_valid_host(host_id)); in alloc_dma_chan()
193 assert(dma_chan == (int)host_id || dma_chan == SPI_DMA_CH_AUTO); in alloc_dma_chan()
210 success = claim_dma_chan(host_id, &actual_dma_chan); in alloc_dma_chan()
224 connect_spi_and_dma(host_id, *out_actual_tx_dma_chan); in alloc_dma_chan()
230 static esp_err_t alloc_dma_chan(spi_host_device_t host_id, spi_dma_chan_t dma_chan, uint32_t *out_a… in alloc_dma_chan() argument
232 assert(is_valid_host(host_id)); in alloc_dma_chan()
236 spicommon_bus_context_t *ctx = bus_ctx[host_id]; in alloc_dma_chan()
[all …]
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
68 SPIHD_CHECK(VALID_HOST(host_id), "invalid host", ESP_ERR_INVALID_ARG); in spi_slave_hd_init()
70 …SPIHD_CHECK(config->dma_chan == SPI_DMA_DISABLED || config->dma_chan == (int)host_id || config->dm… in spi_slave_hd_init()
79 spi_chan_claimed = spicommon_periph_claim(host_id, "slave_hd"); in spi_slave_hd_init()
87 spihost[host_id] = host; in spi_slave_hd_init()
92 …ret = spicommon_dma_chan_alloc(host_id, config->dma_chan, &actual_tx_dma_chan, &actual_rx_dma_chan… in spi_slave_hd_init()
98 …ret = spicommon_bus_initialize_io(host_id, bus_config, SPICOMMON_BUSFLAG_SLAVE | bus_config->flags… in spi_slave_hd_init()
103 spicommon_cs_initialize(host_id, config->spics_io_num, 0, in spi_slave_hd_init()
108 .host_id = host_id, in spi_slave_hd_init()
109 .dma_in = SPI_LL_GET_HW(host_id), in spi_slave_hd_init()
[all …]
Dspi_master.c195 static esp_err_t spi_master_init_driver(spi_host_device_t host_id) in spi_master_init_driver() argument
199 const spi_bus_attr_t* bus_attr = spi_bus_get_attr(host_id); in spi_master_init_driver()
210 .id = host_id, in spi_master_init_driver()
217 if (host_id != SPI1_HOST) { in spi_master_init_driver()
219 err = esp_intr_alloc(spicommon_irqsource_for_host(host_id), in spi_master_init_driver()
230 .dma_in = SPI_LL_GET_HW(host_id), in spi_master_init_driver()
231 .dma_out = SPI_LL_GET_HW(host_id), in spi_master_init_driver()
239 spi_hal_init(&host->hal, host_id, &hal_config); in spi_master_init_driver()
241 if (host_id != SPI1_HOST) { in spi_master_init_driver()
243 spi_bus_lock_handle_t lock = spi_bus_lock_get_by_id(host_id); in spi_master_init_driver()
[all …]
Dsdspi_host.c44 spi_host_device_t host_id; //!< SPI host id. member
98 if (s_slots[slot->host_id] == NULL) { in store_slot_info()
99 s_slots[slot->host_id] = slot; in store_slot_info()
100 return slot->host_id; in store_slot_info()
211 return spi_bus_add_device(slot->host_id, &devcfg, &slot->spi_handle); in configure_spi_dev()
308 __func__, slot_config->host_id + 1, slot_config->gpio_cs, in sdspi_host_init_device()
316 .host_id = slot_config->host_id, in sdspi_host_init_device()
960 spi_host_device_t host_id = slot; in sdspi_host_init_slot() local
969 ret = spi_bus_initialize(host_id, &buscfg, in sdspi_host_init_slot()
978 .host_id = host_id, in sdspi_host_init_slot()
[all …]
/hal_espressif-3.6.0/components/spi_flash/test/
Dtest_esp_flash.c171 .host_id = -1, \
177 .host_id = SPI1_HOST, \
200 .host_id = VSPI_HOST,
212 .host_id = FSPI_HOST,
220 .host_id = HSPI_HOST,
232 .host_id = -1,
237 .host_id = SPI2_HOST,
248 .host_id = -1,
253 .host_id = SPI2_HOST,
263 spi_host_device_t host_id; in get_chip_host() local
[all …]
/hal_espressif-3.6.0/components/spi_flash/
Desp_flash_spi_init.c77 .host_id = SPI1_HOST,\
86 .host_id = SPI1_HOST,\
96 .host_id = SPI1_HOST,\
107 .host_id = SPI1_HOST,\
116 .host_id = SPI1_HOST,\
129 .host_id = SPI1_HOST,\
137 .host_id = SPI1_HOST,\
154 int spics_in = spi_periph_signal[config->host_id].spics_in; in cs_initialize()
155 int spics_out = spi_periph_signal[config->host_id].spics_out[cs_id]; in cs_initialize()
156 int spics_func = spi_periph_signal[config->host_id].func; in cs_initialize()
[all …]
Dspi_flash_os_func_app.c213 static spi_bus_lock_dev_handle_t register_dev(int host_id) in register_dev() argument
215 spi_bus_lock_handle_t lock = spi_bus_lock_get_by_id(host_id); in register_dev()
225 esp_err_t esp_flash_init_os_functions(esp_flash_t *chip, int host_id, int* out_dev_id) in esp_flash_init_os_functions() argument
231 bool skip_register_dev = (host_id == SPI1_HOST); in esp_flash_init_os_functions()
236 dev_handle = register_dev(host_id); in esp_flash_init_os_functions()
239 if (host_id == SPI1_HOST) { in esp_flash_init_os_functions()
253 } else if (host_id == SPI2_HOST || host_id == SPI3_HOST) { in esp_flash_init_os_functions()
/hal_espressif-3.6.0/components/esp_hw_support/
Dregi2c_ctrl.c17 uint8_t IRAM_ATTR regi2c_ctrl_read_reg(uint8_t block, uint8_t host_id, uint8_t reg_add) in regi2c_ctrl_read_reg() argument
20 uint8_t value = i2c_read_reg_raw(block, host_id, reg_add); in regi2c_ctrl_read_reg()
25 uint8_t IRAM_ATTR regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_… in regi2c_ctrl_read_reg_mask() argument
28 uint8_t value = i2c_read_reg_mask_raw(block, host_id, reg_add, msb, lsb); in regi2c_ctrl_read_reg_mask()
33 void IRAM_ATTR regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data) in regi2c_ctrl_write_reg() argument
36 i2c_write_reg_raw(block, host_id, reg_add, data); in regi2c_ctrl_write_reg()
40 void IRAM_ATTR regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t … in regi2c_ctrl_write_reg_mask() argument
43 i2c_write_reg_mask_raw(block, host_id, reg_add, msb, lsb, data); in regi2c_ctrl_write_reg_mask()
/hal_espressif-3.6.0/components/driver/include/driver/
Dspi_slave_hd.h101 esp_err_t spi_slave_hd_init(spi_host_device_t host_id, const spi_bus_config_t *bus_config,
112 esp_err_t spi_slave_hd_deinit(spi_host_device_t host_id);
130 esp_err_t spi_slave_hd_queue_trans(spi_host_device_t host_id, spi_slave_chan_t chan, spi_slave_hd_d…
147 esp_err_t spi_slave_hd_get_trans_res(spi_host_device_t host_id, spi_slave_chan_t chan, spi_slave_hd…
157 void spi_slave_hd_read_buffer(spi_host_device_t host_id, int addr, uint8_t *out_data, size_t len);
167 void spi_slave_hd_write_buffer(spi_host_device_t host_id, int addr, uint8_t *data, size_t len);
187 esp_err_t spi_slave_hd_append_trans(spi_host_device_t host_id, spi_slave_chan_t chan, spi_slave_hd_…
204 esp_err_t spi_slave_hd_get_append_trans_res(spi_host_device_t host_id, spi_slave_chan_t chan, spi_s…
Dspi_common_internal.h125 esp_err_t spicommon_dma_chan_alloc(spi_host_device_t host_id, spi_dma_chan_t dma_chan, uint32_t *ou…
135 esp_err_t spicommon_dma_chan_free(spi_host_device_t host_id);
323 const spi_bus_attr_t* spi_bus_get_attr(spi_host_device_t host_id);
333 esp_err_t spi_bus_register_destroy_func(spi_host_device_t host_id,
475 int host_id; ///< SPI host id member
512 spi_bus_lock_handle_t spi_bus_lock_get_by_id(spi_host_device_t host_id);
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32s2/
Dregi2c_ctrl.h34 uint8_t i2c_rtc_read_reg(uint8_t block, uint8_t host_id, uint8_t reg_add);
35 uint8_t i2c_rtc_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t…
36 void i2c_rtc_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
37 void i2c_rtc_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t l…
58 uint8_t regi2c_ctrl_read_reg(uint8_t block, uint8_t host_id, uint8_t reg_add);
59 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
60 void regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
61 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
Dregi2c_ctrl.c103 uint8_t i2c_rtc_read_reg(uint8_t block, uint8_t host_id, uint8_t reg_add) in i2c_rtc_read_reg() argument
114 uint8_t i2c_rtc_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t… in i2c_rtc_read_reg_mask() argument
127 void i2c_rtc_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data) in i2c_rtc_write_reg() argument
139 void i2c_rtc_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t l… in i2c_rtc_write_reg_mask() argument
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32/
Dregi2c_ctrl.h27 uint8_t rom_i2c_readReg(uint8_t block, uint8_t host_id, uint8_t reg_add);
28 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
29 void rom_i2c_writeReg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
30 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
50 uint8_t regi2c_ctrl_read_reg(uint8_t block, uint8_t host_id, uint8_t reg_add);
51 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
52 void regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
53 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32c3/
Dregi2c_ctrl.h40 uint8_t rom_i2c_readReg(uint8_t block, uint8_t host_id, uint8_t reg_add);
41 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
42 void rom_i2c_writeReg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
43 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
63 uint8_t regi2c_ctrl_read_reg(uint8_t block, uint8_t host_id, uint8_t reg_add);
64 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
65 void regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
66 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
Di2c_rtc_clk.h22 uint8_t rom_i2c_readReg(uint8_t block, uint8_t host_id, uint8_t reg_add);
23 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
24 void rom_i2c_writeReg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
25 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32h2/
Dregi2c_ctrl.h54 uint8_t rom_i2c_readReg(uint8_t block, uint8_t host_id, uint8_t reg_add);
55 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
56 void rom_i2c_writeReg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
57 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
77 uint8_t regi2c_ctrl_read_reg(uint8_t block, uint8_t host_id, uint8_t reg_add);
78 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
79 void regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
80 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
Di2c_rtc_clk.h22 uint8_t rom_i2c_readReg(uint8_t block, uint8_t host_id, uint8_t reg_add);
23 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
24 void rom_i2c_writeReg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
25 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
/hal_espressif-3.6.0/components/esp_hw_support/port/esp32s3/
Dregi2c_ctrl.h38 uint8_t rom_i2c_readReg(uint8_t block, uint8_t host_id, uint8_t reg_add);
39 uint8_t rom_i2c_readReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t …
40 void rom_i2c_writeReg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
41 void rom_i2c_writeReg_Mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8_t ls…
61 uint8_t regi2c_ctrl_read_reg(uint8_t block, uint8_t host_id, uint8_t reg_add);
62 uint8_t regi2c_ctrl_read_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uin…
63 void regi2c_ctrl_write_reg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
64 void regi2c_ctrl_write_reg_mask(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t msb, uint8…
/hal_espressif-3.6.0/components/hal/
Dspi_flash_hal.c77 bool main_flash = (cfg->host_id == SPI1_HOST && cfg->cs_num == 0); in extra_dummy_under_timing_tuning()
96 if (!esp_ptr_internal(data_out) && cfg->host_id == SPI1_HOST) { in spi_flash_hal_init()
99 if (cfg->cs_num >= SOC_SPI_PERIPH_CS_NUM(cfg->host_id)) { in spi_flash_hal_init()
103 bool gpspi = (cfg->host_id > SPI1_HOST); in spi_flash_hal_init()
108 .spi = spi_flash_ll_get_hw(cfg->host_id), in spi_flash_hal_init()
/hal_espressif-3.6.0/components/sdmmc/test/
Dtest_sd.c237 test_sdspi_init_bus(dev_config.host_id, pin_mosi, pin_miso, pin_sck, SPI_DMA_CH_AUTO); in probe_spi()
244 test_sdspi_deinit_bus(dev_config.host_id); in probe_spi()
486 dev_config.host_id = config.slot; in sdspi_test_rw_blocks()
488 …test_sdspi_init_bus(dev_config.host_id, SDSPI_TEST_MOSI_PIN, SDSPI_TEST_MISO_PIN, SDSPI_TEST_SCLK_… in sdspi_test_rw_blocks()
501 test_sdspi_deinit_bus(dev_config.host_id); in sdspi_test_rw_blocks()
655 dev_config.host_id = config.slot;
658 …test_sdspi_init_bus(dev_config.host_id, SDSPI_TEST_MOSI_PIN, SDSPI_TEST_MISO_PIN, SDSPI_TEST_SCLK_…
667 test_sdspi_deinit_bus(dev_config.host_id);
678 dev_config.host_id = config.slot;
681 …test_sdspi_init_bus(dev_config.host_id, SDSPI_TEST_MOSI_PIN, SDSPI_TEST_MISO_PIN, SDSPI_TEST_SCLK_…
[all …]
/hal_espressif-3.6.0/components/soc/esp32h2/include/soc/
Dspi_caps.h31 #define SOC_SPI_PERIPH_SUPPORT_MULTILINE_MODE(host_id) ((host_id) != 2) argument
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/
Dspi_flash_ll.h41 #define spi_flash_ll_get_hw(host_id) (((host_id)<=SPI1_HOST ? (spi_dev_t*) spimem_flash_ll_get_hw( argument
42 : gpspi_flash_ll_get_hw(host_id)))
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/
Dspi_flash_ll.h41 #define spi_flash_ll_get_hw(host_id) (((host_id)<=SPI1_HOST ? (spi_dev_t*) spimem_flash_ll_get_hw( argument
42 : gpspi_flash_ll_get_hw(host_id)))
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/
Dspi_flash_ll.h41 #define spi_flash_ll_get_hw(host_id) (((host_id)<=SPI1_HOST ? (spi_dev_t*) spimem_flash_ll_get_hw( argument
42 : gpspi_flash_ll_get_hw(host_id)))
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/
Dspi_flash_ll.h41 #define spi_flash_ll_get_hw(host_id) (((host_id)<=SPI1_HOST ? (spi_dev_t*) spimem_flash_ll_get_hw( argument
42 : gpspi_flash_ll_get_hw(host_id)))

123