diff --git a/demos/ARMCM3-STM32F103-FATFS-GCC/main.c b/demos/ARMCM3-STM32F103-FATFS-GCC/main.c index e01977ac0..ef06c6614 100644 --- a/demos/ARMCM3-STM32F103-FATFS-GCC/main.c +++ b/demos/ARMCM3-STM32F103-FATFS-GCC/main.c @@ -105,6 +105,8 @@ static void TimerHandler(eventid_t id) { */ static void InsertHandler(eventid_t id) { FRESULT err; + uint32_t clusters; + FATFS *fsp; (void)id; /* @@ -117,6 +119,11 @@ static void InsertHandler(eventid_t id) { mmcDisconnect(&MMCD1); return; } + err = f_getfree("/", &clusters, &fsp); + if (err != FR_OK) { + mmcDisconnect(&MMCD1); + return; + } } /* diff --git a/ext/ff007e-patched.zip b/ext/ff007e-patched.zip index 8a2293686..7b7cd3160 100644 Binary files a/ext/ff007e-patched.zip and b/ext/ff007e-patched.zip differ diff --git a/readme.txt b/readme.txt index da90a9c83..3ab69d454 100644 --- a/readme.txt +++ b/readme.txt @@ -12,6 +12,9 @@ - NEW: New SPI (master) driver model. - NEW: SPI driver for STM32 implementing the new SPI driver model. - NEW: New ADC (streaming capable) driver model. +- NEW: Generic MMC (over SPI) driver. +- NEW: Added a STM32 demo that integrates the MMC driver and the FatFs + file system. - CHANGE: Moved the STM32 firmware library under ./ext, this way there is no need to duplicate it in each demo program. - CHANGE: Moved the file stm32f10x.h from the demos to the platforms support