diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-28 09:12:09 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-28 09:12:09 +0000 |
commit | 4cd975affe635e7e635a76eafd2b0f9b4b747e07 (patch) | |
tree | 03c899a1876ca8b058e8ba1fa5c43f60e8645886 /testhal/STM32/STM32F4xx/RTC/main.c | |
parent | 746736f9ca4f97a0dd60eeb4b3d0da6ef178f98c (diff) | |
download | ChibiOS-4cd975affe635e7e635a76eafd2b0f9b4b747e07.tar.gz ChibiOS-4cd975affe635e7e635a76eafd2b0f9b4b747e07.tar.bz2 ChibiOS-4cd975affe635e7e635a76eafd2b0f9b4b747e07.zip |
Improved makefiles on STM32F4xx.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7823 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx/RTC/main.c')
-rw-r--r-- | testhal/STM32/STM32F4xx/RTC/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F4xx/RTC/main.c b/testhal/STM32/STM32F4xx/RTC/main.c index fff906a19..1c2b60082 100644 --- a/testhal/STM32/STM32F4xx/RTC/main.c +++ b/testhal/STM32/STM32F4xx/RTC/main.c @@ -144,7 +144,7 @@ static time_t GetTimeUnixSec(void) { struct tm tim;
rtcGetTime(&RTCD1, ×pec);
- rtcConvertDateTimeToStructTm(×pec, &tim);
+ rtcConvertDateTimeToStructTm(×pec, &tim, NULL);
return mktime(&tim);
}
@@ -153,7 +153,7 @@ static time_t GetTimeUnixSec(void) { */
static void GetTimeTm(struct tm *timp) {
rtcGetTime(&RTCD1, ×pec);
- rtcConvertDateTimeToStructTm(×pec, timp);
+ rtcConvertDateTimeToStructTm(×pec, timp, NULL);
}
/*
|