Skip to content

Commit 1f070c9

Browse files
FRASTMcarlescufi
authored andcommitted
drivers: timer: stm32u5 lptimer wait for ready only once
The stm32_lptim_wait_ready() is waiting for the DIEROK flag with a while loop. It should not be repeated. Signed-off-by: Francois Ramu <francois.ramu@st.com>
1 parent 143dfda commit 1f070c9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/timer/stm32_lptim_timer.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,6 @@ static int sys_clock_driver_init(void)
447447
/* ARROK bit validates the write operation to ARR register */
448448
LL_LPTIM_EnableIT_ARROK(LPTIM);
449449
stm32_lptim_wait_ready();
450-
#ifdef CONFIG_SOC_SERIES_STM32U5X
451-
while (LL_LPTIM_IsActiveFlag_DIEROK(LPTIM) == 0) {
452-
}
453-
LL_LPTIM_ClearFlag_DIEROK(LPTIM);
454-
#endif
455450
LL_LPTIM_ClearFlag_ARROK(LPTIM);
456451

457452
accumulated_lptim_cnt = 0;

0 commit comments

Comments
 (0)