aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-12 11:07:30 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-12 11:07:30 +0000
commit527ef56ed39ada4b393062184144c33a86dbac2c (patch)
tree8e03bcc822333215cb61f109dac03ab9bca38d65 /testhal
parenta8115a6060dc7ef4a54d6bc27459b722ee7d1f57 (diff)
parentfacfe77b186a05dde255b4c66d22cdddaf0fd0f6 (diff)
downloadChibiOS-527ef56ed39ada4b393062184144c33a86dbac2c.tar.gz
ChibiOS-527ef56ed39ada4b393062184144c33a86dbac2c.tar.bz2
ChibiOS-527ef56ed39ada4b393062184144c33a86dbac2c.zip
Merging changes from rtc_dev branch.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3601 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32F1xx/RTC/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testhal/STM32F1xx/RTC/main.c b/testhal/STM32F1xx/RTC/main.c
index ea7155f47..19043a02a 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 FALSE
+#define TEST_ALARM_WAKEUP TRUE
#if TEST_ALARM_WAKEUP
@@ -45,9 +45,9 @@ int main(void) {
chThdCreateStatic(blinkWA, sizeof(blinkWA), NORMALPRIO, blink_thd, NULL);
/* set alarm in near future */
- rtcGetTime(&timespec);
+ rtcGetTime(&RTCD1, &timespec);
alarmspec.tv_sec = timespec.tv_sec + 60;
- rtcSetAlarm(&alarmspec);
+ rtcSetAlarm(&RTCD1, 0, &alarmspec);
while (TRUE){
chThdSleepSeconds(10);