diff options
Diffstat (limited to 'testhal')
-rw-r--r-- | testhal/STM32F1xx/RTC/main.c | 4 |
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;
}
}
|