mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fb22c1f182
FATFS provides a disk status and disk initialize callback which were not implemented. Implementation has very low impact on SD/MMC speed and fixes issues, when trying to open file when SD card was removed from slot and not deinited. If disk_status returns STA_NOINIT, it will always continue with disk_initialize. If that returns 0, it will continue like everything is working normally. So there has to be the same check as in disk_status. Return of disk_initialize is always checked like this for STA_NOINIT or STA_PROTECT so if command fails, we return the STA_NOINIT. stat = disk_initialize(pdrv); if (stat & STA_NOINIT) return FR_NOT_READY; if (stat & STA_PROTECT) return FR_WRITE_PROTECTED; Closes IDF-4125 |
||
---|---|---|
.. | ||
include | ||
test | ||
CMakeLists.txt | ||
component.mk | ||
sdmmc_cmd.c | ||
sdmmc_common.c | ||
sdmmc_common.h | ||
sdmmc_init.c | ||
sdmmc_io.c | ||
sdmmc_mmc.c | ||
sdmmc_sd.c |