feat: add debug for SDIO switch from 1bit to 4bits (#5042)

This commit is contained in:
3djc
2024-05-22 08:49:24 +10:00
committed by GitHub
parent 53c794da8c
commit c7cb7da21e
@@ -156,7 +156,12 @@ static DSTATUS sdio_initialize(BYTE lun)
return STA_NOINIT;
}
HAL_SD_ConfigWideBusOperation(&sdio, SDIO_BUS_WIDE_4B);
halStatus = HAL_SD_ConfigWideBusOperation(&sdio, SDIO_BUS_WIDE_4B);
if (halStatus != HAL_OK) {
TRACE("HAL_SD_ConfigWideBusOperation() status=%d", halStatus);
} else {
TRACE("SD Bus width successfully set to 4 bits");
}
TRACE("SD card info:");
TRACE("type: %u", (uint32_t)(cardInfo.CardType));