esp-adf
esp-adf copied to clipboard
SD-card code hardcodes SPI GPIO pins (AUD-3001)
From esp-adf/components/esp_peripherals/lib/sdcard/sdcard.c
:
#define PIN_NUM_MISO 2
#define PIN_NUM_MOSI 15
#define PIN_NUM_CLK 14
#define PIN_NUM_CS 13
See here for more information.
Hi @ropg
I have to admit that this code is not good. Thanks for your advice!
A simple fix would be too use get_spi_pins, wouldn't it? I guess most use this for a generic SPI (boy the same cs pin as SD card).. maybe a new CONFIG_* (CONFIG_BOARD_HAS_SD_SPI or something). That menu could set CONFIG_[SCK/MISO/MOSI/CS]_PIN
Fixed it on 80fd0163d9bc7613fabed42d4fa782485b3a0b44