spi: limit esp32 dma workaround only on esp32

This commit is contained in:
Armando
2022-09-15 18:26:12 +08:00
committed by wanlei
parent a7289587d3
commit ea0b839302
6 changed files with 37 additions and 18 deletions

View File

@@ -227,7 +227,8 @@ int spicommon_irqdma_source_for_host(spi_host_device_t host);
*/
typedef void(*dmaworkaround_cb_t)(void *arg);
#if CONFIG_IDF_TARGET_ESP32
//This workaround is only for esp32
/**
* @brief Request a reset for a certain DMA channel
*
@@ -274,6 +275,7 @@ void spicommon_dmaworkaround_idle(int dmachan);
* be affected by a global SPI DMA reset, and a reset like that should not be attempted.
*/
void spicommon_dmaworkaround_transfer_active(int dmachan);
#endif //#if CONFIG_IDF_TARGET_ESP32
/*******************************************************************************
* Bus attributes