/* This function calculate how many OS Ticks that MCU have suspended */
static rt_tick_t pm_timer_get_tick(struct rt_pm *pm)
/* This function calculate how many OS Ticks that MCU have suspended */
static rt_tick_t pm_timer_get_tick(struct rt_pm *pm)
{
    rt_uint32_t timer_tick;
    RT_ASSERT(pm != RT_NULL);
    timer_tick = stm32l4_lptim_get_current_tick();
    return stm32l4_os_tick_from_pm_tick(timer_tick);
}