Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stml4 pmtimer停止的疑问 #9

Open
haov000 opened this issue Sep 19, 2019 · 0 comments
Open

stml4 pmtimer停止的疑问 #9

haov000 opened this issue Sep 19, 2019 · 0 comments

Comments

@haov000
Copy link

haov000 commented Sep 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant