Skip to content

stml4 pmtimer停止的疑问 #9

Description

@haov000

在潘朵拉低功耗文件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)`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions