Lines Matching refs:LPTIMx

95 ErrorStatus LL_LPTIM_DeInit(const 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()
113 else if (LPTIMx == LPTIM3) in LL_LPTIM_DeInit()
120 else if (LPTIMx == LPTIM4) in LL_LPTIM_DeInit()
127 else if (LPTIMx == LPTIM5) in LL_LPTIM_DeInit()
166 ErrorStatus LL_LPTIM_Init(LPTIM_TypeDef *LPTIMx, const LL_LPTIM_InitTypeDef *LPTIM_InitStruct) in LL_LPTIM_Init() argument
170 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_Init()
179 if (LL_LPTIM_IsEnabled(LPTIMx) == 1UL) in LL_LPTIM_Init()
189 MODIFY_REG(LPTIMx->CFGR, in LL_LPTIM_Init()
209 void LL_LPTIM_Disable(LPTIM_TypeDef *LPTIMx) in LL_LPTIM_Disable() argument
221 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_Disable()
229 switch ((uint32_t)LPTIMx) in LL_LPTIM_Disable()
253 tmpIER = LPTIMx->IER; in LL_LPTIM_Disable()
254 tmpCFGR = LPTIMx->CFGR; in LL_LPTIM_Disable()
255 tmpCMP = LPTIMx->CMP; in LL_LPTIM_Disable()
256 tmpARR = LPTIMx->ARR; in LL_LPTIM_Disable()
257 tmpCFGR2 = LPTIMx->CFGR2; in LL_LPTIM_Disable()
260 (void)LL_LPTIM_DeInit(LPTIMx); in LL_LPTIM_Disable()
268 switch ((uint32_t)LPTIMx) in LL_LPTIM_Disable()
294 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
295 LPTIMx->CMP = tmpCMP; in LL_LPTIM_Disable()
301 … } while (((LL_LPTIM_IsActiveFlag_CMPOK(LPTIMx) != 1UL)) && ((rcc_clock.SYSCLK_Frequency) > 0UL)); in LL_LPTIM_Disable()
303 LL_LPTIM_ClearFlag_CMPOK(LPTIMx); in LL_LPTIM_Disable()
308 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
309 LPTIMx->ARR = tmpARR; in LL_LPTIM_Disable()
316 … } while (((LL_LPTIM_IsActiveFlag_ARROK(LPTIMx) != 1UL)) && ((rcc_clock.SYSCLK_Frequency) > 0UL)); in LL_LPTIM_Disable()
318 LL_LPTIM_ClearFlag_ARROK(LPTIMx); in LL_LPTIM_Disable()
327 LPTIMx->CR &= ~(LPTIM_CR_ENABLE); in LL_LPTIM_Disable()
328 LPTIMx->IER = tmpIER; in LL_LPTIM_Disable()
329 LPTIMx->CFGR = tmpCFGR; in LL_LPTIM_Disable()
330 LPTIMx->CFGR2 = tmpCFGR2; in LL_LPTIM_Disable()