aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testhal/STM32/STM32F1xx/RTC/main.c2
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");