Lines Matching refs:LPTIMx
95 ErrorStatus LL_LPTIM_DeInit(LPTIM_TypeDef *LPTIMx) in LL_LPTIM_DeInit() argument
100 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_DeInit()
102 if (LPTIMx == LPTIM1) in LL_LPTIM_DeInit()
107 else if (LPTIMx == LPTIM2) in LL_LPTIM_DeInit()
112 else if (LPTIMx == LPTIM3) in LL_LPTIM_DeInit()
117 else if (LPTIMx == LPTIM4) in LL_LPTIM_DeInit()
122 else if (LPTIMx == LPTIM5) in LL_LPTIM_DeInit()
160 ErrorStatus LL_LPTIM_Init(LPTIM_TypeDef *LPTIMx, LL_LPTIM_InitTypeDef *LPTIM_InitStruct) in LL_LPTIM_Init() argument
164 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_Init()
173 if (LL_LPTIM_IsEnabled(LPTIMx) == 1UL) in LL_LPTIM_Init()
183 MODIFY_REG(LPTIMx->CFGR, in LL_LPTIM_Init()
203 void LL_LPTIM_Disable(LPTIM_TypeDef *LPTIMx) in LL_LPTIM_Disable() argument
215 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_Disable()
223 switch ((uint32_t)LPTIMx) in LL_LPTIM_Disable()
243 tmpIER = LPTIMx->IER; in LL_LPTIM_Disable()
244 tmpCFGR = LPTIMx->CFGR; in LL_LPTIM_Disable()
245 tmpCMP = LPTIMx->CMP; in LL_LPTIM_Disable()
246 tmpARR = LPTIMx->ARR; in LL_LPTIM_Disable()
247 tmpCFGR2 = LPTIMx->CFGR2; in LL_LPTIM_Disable()
250 (void)LL_LPTIM_DeInit(LPTIMx); in LL_LPTIM_Disable()
258 switch ((uint32_t)LPTIMx) in LL_LPTIM_Disable()
280 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
281 LPTIMx->CMP = tmpCMP; in LL_LPTIM_Disable()
287 } while (((LL_LPTIM_IsActiveFlag_CMPOK(LPTIMx) != 1UL)) && ((rcc_clock.MCU_Frequency) > 0UL)); in LL_LPTIM_Disable()
289 LL_LPTIM_ClearFlag_CMPOK(LPTIMx); in LL_LPTIM_Disable()
294 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
295 LPTIMx->ARR = tmpARR; in LL_LPTIM_Disable()
302 } while (((LL_LPTIM_IsActiveFlag_ARROK(LPTIMx) != 1UL)) && ((rcc_clock.MCU_Frequency) > 0UL)); in LL_LPTIM_Disable()
304 LL_LPTIM_ClearFlag_ARROK(LPTIMx); in LL_LPTIM_Disable()
313 LPTIMx->CR &= ~(LPTIM_CR_ENABLE); in LL_LPTIM_Disable()
314 LPTIMx->IER = tmpIER; in LL_LPTIM_Disable()
315 LPTIMx->CFGR = tmpCFGR; in LL_LPTIM_Disable()
316 LPTIMx->CFGR2 = tmpCFGR2; in LL_LPTIM_Disable()