fix(sdmmc): Send status (CMD13) even if write/read command fails

This commit is contained in:
Adam Múdry
2025-06-27 13:54:45 +08:00
committed by BOT
parent 9b3cebf741
commit df1a14bd96
2 changed files with 24 additions and 8 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ extern "C" {
#define MMC_R1_CURRENT_STATE_POS (9)
#define MMC_R1_CURRENT_STATE_MASK (0x1E00)/* card current state */
#define MMC_R1_CURRENT_STATE_TRAN (4)
#define MMC_R1_CURRENT_STATE_STATUS(status) ((status & MMC_R1_CURRENT_STATE_MASK) >> MMC_R1_CURRENT_STATE_POS)
#define MMC_R1_CURRENT_STATE_STATUS(status) (((status) & MMC_R1_CURRENT_STATE_MASK) >> MMC_R1_CURRENT_STATE_POS)
/* SPI mode R1 response type bits */
#define SD_SPI_R1_IDLE_STATE (1<<0)