Home
last modified time | relevance | path

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

/hal_espressif-3.4.0/components/driver/
Dspi_slave.c70 static spi_slave_t *spihost[SOC_SPI_PERIPH_NUM]; variable
131 spihost[host] = malloc(sizeof(spi_slave_t)); in spi_slave_initialize()
132 if (spihost[host] == NULL) { in spi_slave_initialize()
136 memset(spihost[host], 0, sizeof(spi_slave_t)); in spi_slave_initialize()
137 memcpy(&spihost[host]->cfg, slave_config, sizeof(spi_slave_interface_config_t)); in spi_slave_initialize()
138 spihost[host]->id = host; in spi_slave_initialize()
141 spihost[host]->dma_enabled = use_dma; in spi_slave_initialize()
149 …_initialize_io(host, bus_config, SPICOMMON_BUSFLAG_SLAVE|bus_config->flags, &spihost[host]->flags); in spi_slave_initialize()
155 spicommon_cs_initialize(host, slave_config->spics_io_num, 0, !bus_is_iomux(spihost[host])); in spi_slave_initialize()
159 if (use_dma) freeze_cs(spihost[host]); in spi_slave_initialize()
[all …]
Dspi_slave_hd.c50 static spi_slave_hd_slot_t *spihost[SOC_SPI_PERIPH_NUM]; variable
87 spihost[host_id] = host; in spi_slave_hd_init()
220 spi_slave_hd_slot_t *host = spihost[host_id]; in spi_slave_hd_deinit()
247 spihost[host_id] = NULL; in spi_slave_hd_deinit()
474 spi_slave_hd_slot_t *host = spihost[host_id]; in get_ret_queue_result()
494 spi_slave_hd_slot_t* host = spihost[host_id]; in spi_slave_hd_queue_trans()
520 spi_slave_hd_slot_t* host = spihost[host_id]; in spi_slave_hd_get_trans_res()
531 spi_slave_hd_hal_read_buffer(&spihost[host_id]->hal, addr, out_data, len); in spi_slave_hd_read_buffer()
536 spi_slave_hd_hal_write_buffer(&spihost[host_id]->hal, addr, data, len); in spi_slave_hd_write_buffer()
545 spi_slave_hd_slot_t *host = spihost[host_id]; in spi_slave_hd_append_trans()
[all …]