diff options
Diffstat (limited to 'testhal/STM32F1xx/RTC')
-rw-r--r-- | testhal/STM32F1xx/RTC/main.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/testhal/STM32F1xx/RTC/main.c b/testhal/STM32F1xx/RTC/main.c index 5797f4235..fb58594ae 100644 --- a/testhal/STM32F1xx/RTC/main.c +++ b/testhal/STM32F1xx/RTC/main.c @@ -26,13 +26,8 @@ RTCAlarm alarmspec; #define TEST_ALARM_WAKEUP FALSE
-#if TEST_ALARM_WAKEUP
-static void my_cb(RTCDriver *rtcp, rtcevent_t event) {
- (void)rtcp;
- (void)event;
- return;
-}
+#if TEST_ALARM_WAKEUP
/* sleep indicator thread */
static WORKING_AREA(blinkWA, 128);
@@ -55,9 +50,6 @@ int main(void) { alarmspec.tv_sec = timespec.tv_sec + 30;
rtcSetAlarm(&RTCD1, 0, &alarmspec);
- /* Needed just to switch interrupts on.*/
- rtcSetCallback(&RTCD1, my_cb);
-
while (TRUE){
chThdSleepSeconds(10);
chSysLock();
|