aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-14 12:23:42 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-14 12:23:42 +0000
commita41f12ad8a925c8baaaeb826e63589721f942f4a (patch)
tree7e0fbfe52976723e152aeb106fd88f8c873e517a /testhal
parent685286c5c8a6ad0d9370e62ea51eb6492e359d2a (diff)
downloadChibiOS-a41f12ad8a925c8baaaeb826e63589721f942f4a.tar.gz
ChibiOS-a41f12ad8a925c8baaaeb826e63589721f942f4a.tar.bz2
ChibiOS-a41f12ad8a925c8baaaeb826e63589721f942f4a.zip
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
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32F1xx/RTC/main.c10
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();