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()
108 else if (LPTIMx == LPTIM2) in LL_LPTIM_DeInit()
147 ErrorStatus LL_LPTIM_Init(LPTIM_TypeDef *LPTIMx, const LL_LPTIM_InitTypeDef *LPTIM_InitStruct) in LL_LPTIM_Init() argument
151 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_Init()
160 if (LL_LPTIM_IsEnabled(LPTIMx) == 1UL) in LL_LPTIM_Init()
170 MODIFY_REG(LPTIMx->CFGR, in LL_LPTIM_Init()
190 void LL_LPTIM_Disable(LPTIM_TypeDef *LPTIMx) in LL_LPTIM_Disable() argument
205 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_Disable()
213 switch ((uint32_t)LPTIMx) in LL_LPTIM_Disable()
228 tmpIER = LPTIMx->IER; in LL_LPTIM_Disable()
229 tmpCFGR = LPTIMx->CFGR; in LL_LPTIM_Disable()
230 tmpCMP = LPTIMx->CMP; in LL_LPTIM_Disable()
231 tmpARR = LPTIMx->ARR; in LL_LPTIM_Disable()
232 tmpOR = LPTIMx->OR; in LL_LPTIM_Disable()
234 tmpRCR = LPTIMx->RCR; in LL_LPTIM_Disable()
238 (void)LL_LPTIM_DeInit(LPTIMx); in LL_LPTIM_Disable()
250 switch ((uint32_t)LPTIMx) in LL_LPTIM_Disable()
267 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
268 LPTIMx->CMP = tmpCMP; in LL_LPTIM_Disable()
274 … } while (((LL_LPTIM_IsActiveFlag_CMPOK(LPTIMx) != 1UL)) && ((rcc_clock.SYSCLK_Frequency) > 0UL)); in LL_LPTIM_Disable()
276 LL_LPTIM_ClearFlag_CMPOK(LPTIMx); in LL_LPTIM_Disable()
281 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
282 LPTIMx->ARR = tmpARR; in LL_LPTIM_Disable()
289 … } while (((LL_LPTIM_IsActiveFlag_ARROK(LPTIMx) != 1UL)) && ((rcc_clock.SYSCLK_Frequency) > 0UL)); in LL_LPTIM_Disable()
291 LL_LPTIM_ClearFlag_ARROK(LPTIMx); in LL_LPTIM_Disable()
297 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
298 LPTIMx->RCR = tmpRCR; in LL_LPTIM_Disable()
305 … } while (((LL_LPTIM_IsActiveFlag_REPOK(LPTIMx) != 1UL)) && ((rcc_clock.SYSCLK_Frequency) > 0UL)); in LL_LPTIM_Disable()
307 LL_LPTIM_ClearFlag_REPOK(LPTIMx); in LL_LPTIM_Disable()
316 LPTIMx->CR &= ~(LPTIM_CR_ENABLE); in LL_LPTIM_Disable()
317 LPTIMx->IER = tmpIER; in LL_LPTIM_Disable()
318 LPTIMx->CFGR = tmpCFGR; in LL_LPTIM_Disable()
319 LPTIMx->OR = tmpOR; in LL_LPTIM_Disable()