Disable the LPTIM instance CR ENABLE LL_LPTIM_Disable.
202 uint32_t tmpclksource = 0;
208 #if defined(LPTIM_RCR_REP) 219 switch ((uint32_t)LPTIMx)
234 tmpIER = LPTIMx->IER;
235 tmpCFGR = LPTIMx->CFGR;
236 tmpCMP = LPTIMx->CMP;
237 tmpARR = LPTIMx->ARR;
239 #if defined(LPTIM_RCR_REP) 240 tmpRCR = LPTIMx->RCR;
249 #if defined(LPTIM_RCR_REP) 250 if ((tmpCMP != 0UL) || (tmpARR != 0UL) || (tmpRCR != 0UL))
252 if ((tmpCMP != 0UL) || (tmpARR != 0UL))
256 switch ((uint32_t)LPTIMx)
273 LPTIMx->CR |= LPTIM_CR_ENABLE;
274 LPTIMx->CMP = tmpCMP;
287 LPTIMx->CR |= LPTIM_CR_ENABLE;
288 LPTIMx->ARR = tmpARR;
300 #if defined(LPTIM_RCR_REP) 303 LPTIMx->CR |= LPTIM_CR_ENABLE;
304 LPTIMx->RCR = tmpRCR;
322 LPTIMx->CR &= ~(LPTIM_CR_ENABLE);
323 LPTIMx->IER = tmpIER;
324 LPTIMx->CFGR = tmpCFGR;
__STATIC_INLINE void LL_LPTIM_ClearFlag_ARROK(LPTIM_TypeDef *LPTIMx)
Clear the autoreload register update interrupt flag (ARROKCF). ICR ARROKCF LL_LPTIM_ClearFlag_ARROK...
RCC Clocks Frequency Structure.
__STATIC_INLINE void LL_LPTIM_ClearFlag_CMPOK(LPTIM_TypeDef *LPTIMx)
Clear the compare register update interrupt flag (CMPOKCF). ICR CMPOKCF LL_LPTIM_ClearFlag_CMPOK.
__STATIC_INLINE void LL_RCC_SetLPTIMClockSource(uint32_t LPTIMxSource)
Configure LPTIMx clock source CCIPR LPTIMxSEL LL_RCC_SetLPTIMClockSource.
void LL_RCC_GetSystemClocksFreq(LL_RCC_ClocksTypeDef *RCC_Clocks)
Return the frequencies of different on chip clocks; System, AHB, APB1 and APB2 buses clocks...
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_CMPOK(LPTIM_TypeDef *LPTIMx)
Informs application whether the APB bus write operation to the LPTIMx_CMP register has been successfu...
__STATIC_INLINE void LL_LPTIM_ClearFlag_REPOK(LPTIM_TypeDef *LPTIMx)
Clear the repetition register update interrupt flag (REPOKCF). ICR REPOKCF LL_LPTIM_ClearFlag_REPOK...
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_ARROK(LPTIM_TypeDef *LPTIMx)
Informs application whether the APB bus write operation to the LPTIMx_ARR register has been successfu...
ErrorStatus LL_LPTIM_DeInit(LPTIM_TypeDef *LPTIMx)
Set LPTIMx registers to their reset values.
uint32_t SYSCLK_Frequency
__STATIC_INLINE uint32_t LL_LPTIM_IsActiveFlag_REPOK(LPTIM_TypeDef *LPTIMx)
Informs application whether the APB bus write operation to the LPTIMx_RCR register has been successfu...
__STATIC_INLINE uint32_t LL_RCC_GetLPTIMClockSource(uint32_t LPTIMx)
Get LPTIMx clock source CCIPR LPTIMxSEL LL_RCC_GetLPTIMClockSource.
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))