From 78b5b2ef504b32f6e0962ba8dfefef2b2801181d Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Thu, 2 Apr 2020 00:41:27 +0200 Subject: [PATCH] driver: timer: st_stm32: fix build with the new timeout API Commit 7832738ae985 ("kernel/timeout: Make timeout arguments an opaque type") changed the forever value for timer drivers to K_TICKS_FOREVER from K_FOREVER. Signed-off-by: Aurelien Jarno --- drivers/timer/stm32_lptim_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/timer/stm32_lptim_timer.c b/drivers/timer/stm32_lptim_timer.c index eeaa89ccd0e..fb9bc24017f 100644 --- a/drivers/timer/stm32_lptim_timer.c +++ b/drivers/timer/stm32_lptim_timer.c @@ -188,7 +188,7 @@ void z_clock_set_timeout(s32_t ticks, bool idle) LL_LPTIM_ClearFlag_ARROK(LPTIM1); #ifdef CONFIG_TICKLESS_KERNEL - if (ticks == K_FOREVER) { + if (ticks == K_TICKS_FOREVER) { /* disable LPTIM */ LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_LPTIM1); LL_APB1_GRP1_DisableClock(LL_APB1_GRP1_PERIPH_LPTIM1);