mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(sdmmc): Send status (CMD13) even if write/read command fails
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user