/* This function caculate the PM tick from OS tick */
static rt_tick_t stm32l4_pm_tick_from_os_tick(rt_tick_t tick)
/* This function caculate the PM tick from OS tick */
static rt_tick_t stm32l4_pm_tick_from_os_tick(rt_tick_t tick)
{
    rt_uint32_t freq = stm32l4_lptim_get_countfreq();
    return (freq * tick / RT_TICK_PER_SECOND);
}