mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
components/driver/spi_master: free dma descriptors
Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
This commit is contained in:
parent
dfb8aa6257
commit
530c3ca05c
@ -177,6 +177,8 @@ esp_err_t spi_bus_free(spi_host_device_t host)
|
|||||||
spihost[host]->hw->slave.trans_done=0;
|
spihost[host]->hw->slave.trans_done=0;
|
||||||
esp_intr_free(spihost[host]->intr);
|
esp_intr_free(spihost[host]->intr);
|
||||||
spicommon_periph_free(host);
|
spicommon_periph_free(host);
|
||||||
|
free(spihost[host]->dmadesc_tx);
|
||||||
|
free(spihost[host]->dmadesc_rx);
|
||||||
free(spihost[host]);
|
free(spihost[host]);
|
||||||
spihost[host]=NULL;
|
spihost[host]=NULL;
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user