aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-08 17:53:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-08 17:53:52 +0000
commit18b8b495244411bb33254ea0d8b868259077be7d (patch)
treebe8ecfe583b4de2ad67d2b2196cabf8992e87d13 /demos
parent6894617b8ebc8453a1ed5e672fb225d0c4f2f51b (diff)
downloadChibiOS-18b8b495244411bb33254ea0d8b868259077be7d.tar.gz
ChibiOS-18b8b495244411bb33254ea0d8b868259077be7d.tar.bz2
ChibiOS-18b8b495244411bb33254ea0d8b868259077be7d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3946 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r--demos/ARMCM3-STM32F103ZG-FATFS/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/ARMCM3-STM32F103ZG-FATFS/main.c b/demos/ARMCM3-STM32F103ZG-FATFS/main.c
index 4181c7004..8199275cd 100644
--- a/demos/ARMCM3-STM32F103ZG-FATFS/main.c
+++ b/demos/ARMCM3-STM32F103ZG-FATFS/main.c
@@ -89,6 +89,7 @@ bool_t sdc_lld_is_write_protected(SDCDriver *sdcp) {
static void tmrfunc(void *p) {
SDCDriver *sdcp = p;
+ chSysLockFromIsr();
if (cnt > 0) {
if (sdcIsCardInserted(sdcp)) {
if (--cnt == 0) {
@@ -105,6 +106,7 @@ static void tmrfunc(void *p) {
}
}
chVTSetI(&tmr, MS2ST(SDC_POLLING_DELAY), tmrfunc, sdcp);
+ chSysUnlockFromIsr();
}
/**