mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
example/sdspi: fix incorrect SPI DMA setting on c3
This commit is contained in:
parent
b857c86535
commit
f1202abc4e
@ -34,8 +34,10 @@ static const char *TAG = "example";
|
|||||||
|
|
||||||
#endif //CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
|
#endif //CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32S2 ||CONFIG_IDF_TARGET_ESP32C3
|
#if CONFIG_IDF_TARGET_ESP32S2
|
||||||
#define SPI_DMA_CHAN host.slot
|
#define SPI_DMA_CHAN host.slot
|
||||||
|
#elif CONFIG_IDF_TARGET_ESP32C3
|
||||||
|
#define SPI_DMA_CHAN SPI_DMA_CH_AUTO
|
||||||
#else
|
#else
|
||||||
#define SPI_DMA_CHAN 1
|
#define SPI_DMA_CHAN 1
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user