STM32L443xx HAL User Manual
Functions
LPTIM Private Functions
LPTIM | LPTIM

Functions

void LPTIM_Disable (LPTIM_HandleTypeDef *hlptim)
 Disable LPTIM HW instance.
static void LPTIM_ResetCallback (LPTIM_HandleTypeDef *lptim)
 Reset interrupt callbacks to the legacy weak callbacks.
static HAL_StatusTypeDef LPTIM_WaitForFlag (LPTIM_HandleTypeDef *hlptim, uint32_t flag)
 LPTimer Wait for flag set.

Function Documentation

void LPTIM_Disable ( LPTIM_HandleTypeDef hlptim)

Disable LPTIM HW instance.

Parameters:
hlptimpointer to a LPTIM_HandleTypeDef structure that contains the configuration information for LPTIM module.
Note:
The following sequence is required to solve LPTIM disable HW limitation. Please check Errata Sheet ES0335 for more details under "MCU may remain stuck in LPTIM interrupt when entering Stop mode" section.
Return values:
None

Definition at line 2561 of file stm32l4xx_hal_lptim.c.

References __HAL_LPTIM_CLEAR_FLAG, __HAL_RCC_GET_LPTIM1_SOURCE, __HAL_RCC_GET_LPTIM2_SOURCE, __HAL_RCC_LPTIM1_CONFIG, __HAL_RCC_LPTIM1_FORCE_RESET, __HAL_RCC_LPTIM1_RELEASE_RESET, __HAL_RCC_LPTIM2_CONFIG, __HAL_RCC_LPTIM2_FORCE_RESET, __HAL_RCC_LPTIM2_RELEASE_RESET, HAL_LPTIM_STATE_TIMEOUT, __LPTIM_HandleTypeDef::Instance, LPTIM_FLAG_ARROK, LPTIM_FLAG_CMPOK, LPTIM_WaitForFlag(), RCC_LPTIM1CLKSOURCE_PCLK1, RCC_LPTIM2CLKSOURCE_PCLK1, and __LPTIM_HandleTypeDef::State.

static void LPTIM_ResetCallback ( LPTIM_HandleTypeDef lptim) [static]
static HAL_StatusTypeDef LPTIM_WaitForFlag ( LPTIM_HandleTypeDef hlptim,
uint32_t  flag 
) [static]

LPTimer Wait for flag set.

Parameters:
hlptimpointer to a LPTIM_HandleTypeDef structure that contains the configuration information for LPTIM module.
flagThe lptim flag
Return values:
HALstatus

Definition at line 2536 of file stm32l4xx_hal_lptim.c.

References __HAL_LPTIM_GET_FLAG, and TIMEOUT.

Referenced by HAL_LPTIM_Counter_Start(), HAL_LPTIM_Counter_Start_IT(), HAL_LPTIM_Encoder_Start(), HAL_LPTIM_Encoder_Start_IT(), HAL_LPTIM_Init(), HAL_LPTIM_OnePulse_Start(), HAL_LPTIM_OnePulse_Start_IT(), HAL_LPTIM_PWM_Start(), HAL_LPTIM_PWM_Start_IT(), HAL_LPTIM_SetOnce_Start(), HAL_LPTIM_SetOnce_Start_IT(), HAL_LPTIM_TimeOut_Start(), HAL_LPTIM_TimeOut_Start_IT(), and LPTIM_Disable().