IoT_Board
IoT_Board copied to clipboard
stml4 pmtimer停止的疑问
在潘朵拉低功耗文件drv_pmtimer.c中,停止pmtimer的时候使用的函数为`void stm32l4_lptim_stop(void) { rt_uint32_t _ier;
_ier = LptimHandle.Instance->IER;
LptimHandle.Instance->ICR = LptimHandle.Instance->ISR & _ier;
}看函数的意思只是清除了一些中断标志,并没有真正停止timer计数啊,函数本意是想停止timer,不知道为什么不直接调用
HAL_StatusTypeDef HAL_LPTIM_TimeOut_Stop_IT(LPTIM_HandleTypeDef *hlptim)`