esp32: Remove hard-coded SPI port for MMC/SD SPI
This commit is contained in:
parent
f2d1f25202
commit
87a2f35c2c
@ -64,7 +64,7 @@ int esp32_mmcsd_initialize(int minor)
|
||||
|
||||
mcinfo("INFO: Initializing mmcsd card\n");
|
||||
|
||||
spi = esp32_spibus_initialize(2);
|
||||
spi = esp32_spibus_initialize(CONFIG_NSH_MMCSDSPIPORTNO);
|
||||
if (spi == NULL)
|
||||
{
|
||||
mcerr("ERROR: Failed to initialize SPI port %d\n", 2);
|
||||
|
@ -64,7 +64,7 @@ int esp32_mmcsd_initialize(int minor)
|
||||
|
||||
mcinfo("INFO: Initializing mmcsd card\n");
|
||||
|
||||
spi = esp32_spibus_initialize(2);
|
||||
spi = esp32_spibus_initialize(CONFIG_NSH_MMCSDSPIPORTNO);
|
||||
if (spi == NULL)
|
||||
{
|
||||
mcerr("ERROR: Failed to initialize SPI port %d\n", 2);
|
||||
|
Loading…
Reference in New Issue
Block a user