aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-13 20:38:02 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-13 20:38:02 +0000
commita2672b8dbb01e460ed1a000143bd22add48fc2b7 (patch)
tree57189ed4ab88b97abc97a25469d7d6f04a38bc54 /testhal
parent03ab00297198821c5dfc2003b584da8ed734de39 (diff)
downloadChibiOS-a2672b8dbb01e460ed1a000143bd22add48fc2b7.tar.gz
ChibiOS-a2672b8dbb01e460ed1a000143bd22add48fc2b7.tar.bz2
ChibiOS-a2672b8dbb01e460ed1a000143bd22add48fc2b7.zip
RTC. Error fixes and robustness improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3806 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32F1xx/RTC/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testhal/STM32F1xx/RTC/main.c b/testhal/STM32F1xx/RTC/main.c
index 2b3bb7be8..5797f4235 100644
--- a/testhal/STM32F1xx/RTC/main.c
+++ b/testhal/STM32F1xx/RTC/main.c
@@ -24,7 +24,7 @@
RTCTime timespec;
RTCAlarm alarmspec;
-#define TEST_ALARM_WAKEUP TRUE
+#define TEST_ALARM_WAKEUP FALSE
#if TEST_ALARM_WAKEUP
@@ -90,7 +90,9 @@ static void my_cb(RTCDriver *rtcp, rtcevent_t event) {
break;
case RTC_EVENT_ALARM:
palTogglePad(GPIOC, GPIOC_LED);
+ chSysLockFromIsr();
chBSemSignalI(&alarm_sem);
+ chSysUnlockFromIsr();
break;
}
}