We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fff5b49 commit e5ded3dCopy full SHA for e5ded3d
drivers/timer/stm32_lptim_timer.c
@@ -627,7 +627,7 @@ void sys_clock_idle_exit(void)
627
stdby_timer_us = counter_ticks_to_us(stdby_timer, stdby_timer_diff);
628
629
/* Convert standby time in LPTIM cnt */
630
- missed_lptim_cnt = (sys_clock_hw_cycles_per_sec() * stdby_timer_us) /
+ missed_lptim_cnt = (CONFIG_STM32_LPTIM_CLOCK * stdby_timer_us) /
631
USEC_PER_SEC;
632
/* Add the LPTIM cnt pre standby */
633
missed_lptim_cnt += lptim_cnt_pre_stdby;
0 commit comments