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()
140 ErrorStatus LL_LPTIM_Init(LPTIM_TypeDef *LPTIMx, const LL_LPTIM_InitTypeDef *LPTIM_InitStruct) in LL_LPTIM_Init() argument
144 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_Init()
153 if (LL_LPTIM_IsEnabled(LPTIMx) == 1UL) in LL_LPTIM_Init()
163 MODIFY_REG(LPTIMx->CFGR, in LL_LPTIM_Init()
183 void LL_LPTIM_Disable(LPTIM_TypeDef *LPTIMx) in LL_LPTIM_Disable() argument
195 assert_param(IS_LPTIM_INSTANCE(LPTIMx)); in LL_LPTIM_Disable()
203 switch ((uint32_t)LPTIMx) in LL_LPTIM_Disable()
213 tmpIER = LPTIMx->IER; in LL_LPTIM_Disable()
214 tmpCFGR = LPTIMx->CFGR; in LL_LPTIM_Disable()
215 tmpCMP = LPTIMx->CMP; in LL_LPTIM_Disable()
216 tmpARR = LPTIMx->ARR; in LL_LPTIM_Disable()
217 tmpOR = LPTIMx->OR; in LL_LPTIM_Disable()
220 (void)LL_LPTIM_DeInit(LPTIMx); in LL_LPTIM_Disable()
228 switch ((uint32_t)LPTIMx) in LL_LPTIM_Disable()
240 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
241 LPTIMx->CMP = tmpCMP; in LL_LPTIM_Disable()
247 … } while (((LL_LPTIM_IsActiveFlag_CMPOK(LPTIMx) != 1UL)) && ((rcc_clock.SYSCLK_Frequency) > 0UL)); in LL_LPTIM_Disable()
249 LL_LPTIM_ClearFlag_CMPOK(LPTIMx); in LL_LPTIM_Disable()
254 LPTIMx->CR |= LPTIM_CR_ENABLE; in LL_LPTIM_Disable()
255 LPTIMx->ARR = tmpARR; in LL_LPTIM_Disable()
262 … } while (((LL_LPTIM_IsActiveFlag_ARROK(LPTIMx) != 1UL)) && ((rcc_clock.SYSCLK_Frequency) > 0UL)); in LL_LPTIM_Disable()
264 LL_LPTIM_ClearFlag_ARROK(LPTIMx); in LL_LPTIM_Disable()
273 LPTIMx->CR &= ~(LPTIM_CR_ENABLE); in LL_LPTIM_Disable()
274 LPTIMx->IER = tmpIER; in LL_LPTIM_Disable()
275 LPTIMx->CFGR = tmpCFGR; in LL_LPTIM_Disable()
276 LPTIMx->OR = tmpOR; in LL_LPTIM_Disable()