From a41f12ad8a925c8baaaeb826e63589721f942f4a Mon Sep 17 00:00:00 2001 From: barthess Date: Sat, 14 Jan 2012 12:23:42 +0000 Subject: RTC. Added possibility of changing RTC clock source. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3809 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32F1xx/RTC/main.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'testhal') 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(); -- cgit v1.2.3