Home
last modified time | relevance | path

Searched refs:hal_config (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/spi/
Dspi_esp32_spim.c198 data->hal_config.dma_in = (spi_dma_dev_t *)cfg->spi; in spi_esp32_init_dma()
199 data->hal_config.dma_out = (spi_dma_dev_t *)cfg->spi; in spi_esp32_init_dma()
200 data->hal_config.dma_enabled = true; in spi_esp32_init_dma()
201 data->hal_config.tx_dma_chan = cfg->dma_host + channel_offset; in spi_esp32_init_dma()
202 data->hal_config.rx_dma_chan = cfg->dma_host + channel_offset; in spi_esp32_init_dma()
203 data->hal_config.dmadesc_n = 1; in spi_esp32_init_dma()
204 data->hal_config.dmadesc_rx = &data->dma_desc_rx; in spi_esp32_init_dma()
205 data->hal_config.dmadesc_tx = &data->dma_desc_tx; in spi_esp32_init_dma()
207 if (data->hal_config.dmadesc_tx == NULL || data->hal_config.dmadesc_rx == NULL) { in spi_esp32_init_dma()
208 k_free(data->hal_config.dmadesc_tx); in spi_esp32_init_dma()
[all …]
Dspi_esp32_spim.h50 spi_hal_config_t hal_config; member