From aedb9a1175ec2c6f50b3d16265afb7dcebdf906e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 4 Nov 2017 17:53:51 +0000 Subject: Time API fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10944 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F1xx/RTC/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testhal/STM32/STM32F1xx/RTC/main.c') 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"); -- cgit v1.2.3