From 9963e8f14e99c8ad7083002a0e5242d2aa13bd59 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 14 Nov 2009 19:40:32 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1297 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARMCM3-STM32F103-FATFS-GCC/main.c | 7 +++++++ ext/ff007e-patched.zip | Bin 634244 -> 634232 bytes readme.txt | 3 +++ 3 files changed, 10 insertions(+) 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 8a2293686d5148270aa55da606c0d018d6db2e94..7b7cd3160aa62fa9be5fa095b00b412bc9171fa9 100644 GIT binary patch delta 1310 zcmV+(1>yRH+a~zhCV+$iv;qw%0+FPVFc`NdC<5?_0+FPL8L|S08L|V18L|Y28L|b3 z8L|e48L|hr8L|k)*$sQ6ZaY=TmHL+i002gp>x&5^fA3G@MiBj+NckV8SLtM~XxUv&-4*aM!B;duP{9OcHXS7Fy~LfcMAj%$xV#n*PD7 zM|uwWop%2Kyl`=yAw(iZ5D7RQ#CVN7MlPZF%%e0Hoc$h3COC+zUon!jmdjjZ1>Ab- zXo<*Se-g?`0q&qT_$~%8#^yK;XI*$b7<>;8d{nf@t(4;Rzh*qjN~-gR8^&XCQ}ogw zTm3#`v7ih!|tK{@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