mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
spi: limit esp32 dma workaround only on esp32
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user