feat: add debug for SDIO switch from 1bit to 4bits (#5042)
This commit is contained in:
@@ -156,7 +156,12 @@ static DSTATUS sdio_initialize(BYTE lun)
|
|||||||
return STA_NOINIT;
|
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("SD card info:");
|
||||||
TRACE("type: %u", (uint32_t)(cardInfo.CardType));
|
TRACE("type: %u", (uint32_t)(cardInfo.CardType));
|
||||||
|
|||||||
Reference in New Issue
Block a user