diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-04 17:53:51 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-04 17:53:51 +0000 |
commit | aedb9a1175ec2c6f50b3d16265afb7dcebdf906e (patch) | |
tree | 026774ed362eb1593cad75e9696681207ba5ec76 /testhal/STM32/STM32F1xx/RTC | |
parent | 6a6160a99508770754d40621f606de610626bf29 (diff) | |
download | ChibiOS-aedb9a1175ec2c6f50b3d16265afb7dcebdf906e.tar.gz ChibiOS-aedb9a1175ec2c6f50b3d16265afb7dcebdf906e.tar.bz2 ChibiOS-aedb9a1175ec2c6f50b3d16265afb7dcebdf906e.zip |
Time API fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10944 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F1xx/RTC')
-rw-r--r-- | testhal/STM32/STM32F1xx/RTC/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testhal/STM32/STM32F1xx/RTC/main.c b/testhal/STM32/STM32F1xx/RTC/main.c index cfc7b82a6..fada5aee4 100644 --- a/testhal/STM32/STM32F1xx/RTC/main.c +++ b/testhal/STM32/STM32F1xx/RTC/main.c @@ -141,7 +141,7 @@ int main(void) { while (true){ /* Wait until alarm callback signaled semaphore.*/ - status = chBSemWaitTimeout(&alarm_sem, S2ST(RTC_ALARMPERIOD + 5)); + status = chBSemWaitTimeout(&alarm_sem, TIME_S2I(RTC_ALARMPERIOD + 5)); if (status == MSG_TIMEOUT){ osalSysHalt("time is out"); |