Merge branch 'bugfix/sdspi_example_esp32s3' into 'master'

examples: sdspi: re-enable for ESP32-S3, add Kconfig options for pins

Closes IDF-4641

See merge request espressif/esp-idf!17067
This commit is contained in:
Ivan Grokhotkov
2022-03-04 18:42:53 +08:00
16 changed files with 450 additions and 359 deletions

View File

@@ -22,8 +22,10 @@ typedef int sdspi_dev_handle_t;
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
#define SDSPI_DEFAULT_HOST HSPI_HOST
#define SDSPI_DEFAULT_DMA SDSPI_DEFAULT_HOST
#else
#define SDSPI_DEFAULT_HOST SPI2_HOST
#define SDSPI_DEFAULT_DMA SPI_DMA_CH_AUTO
#endif
/**
@@ -216,7 +218,7 @@ typedef struct {
.gpio_miso = GPIO_NUM_2, \
.gpio_mosi = GPIO_NUM_15, \
.gpio_sck = GPIO_NUM_14, \
.dma_channel = 1, \
.dma_channel = SDSPI_DEFAULT_DMA, \
}
/**