git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1297 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2009-11-14 19:40:32 +00:00
parent 99b688bc5e
commit 9963e8f14e
3 changed files with 10 additions and 0 deletions

View File

@ -105,6 +105,8 @@ static void TimerHandler(eventid_t id) {
*/ */
static void InsertHandler(eventid_t id) { static void InsertHandler(eventid_t id) {
FRESULT err; FRESULT err;
uint32_t clusters;
FATFS *fsp;
(void)id; (void)id;
/* /*
@ -117,6 +119,11 @@ static void InsertHandler(eventid_t id) {
mmcDisconnect(&MMCD1); mmcDisconnect(&MMCD1);
return; return;
} }
err = f_getfree("/", &clusters, &fsp);
if (err != FR_OK) {
mmcDisconnect(&MMCD1);
return;
}
} }
/* /*

Binary file not shown.

View File

@ -12,6 +12,9 @@
- NEW: New SPI (master) driver model. - NEW: New SPI (master) driver model.
- NEW: SPI driver for STM32 implementing the new SPI driver model. - NEW: SPI driver for STM32 implementing the new SPI driver model.
- NEW: New ADC (streaming capable) 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 - CHANGE: Moved the STM32 firmware library under ./ext, this way there is no
need to duplicate it in each demo program. need to duplicate it in each demo program.
- CHANGE: Moved the file stm32f10x.h from the demos to the platforms support - CHANGE: Moved the file stm32f10x.h from the demos to the platforms support