git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1297 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
99b688bc5e
commit
9963e8f14e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Binary file not shown.
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue