STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE void LL_LPM_EnableSleep (void)
 Processor uses sleep as its low power mode SCB_SCR SLEEPDEEP LL_LPM_EnableSleep. More...
 
__STATIC_INLINE void LL_LPM_EnableDeepSleep (void)
 Processor uses deep sleep as its low power mode SCB_SCR SLEEPDEEP LL_LPM_EnableDeepSleep. More...
 
__STATIC_INLINE void LL_LPM_EnableSleepOnExit (void)
 Configures sleep-on-exit when returning from Handler mode to Thread mode. More...
 
__STATIC_INLINE void LL_LPM_DisableSleepOnExit (void)
 Do not sleep when returning to Thread mode. SCB_SCR SLEEPONEXIT LL_LPM_DisableSleepOnExit. More...
 
__STATIC_INLINE void LL_LPM_EnableEventOnPend (void)
 Enabled events and all interrupts, including disabled interrupts, can wakeup the processor. SCB_SCR SEVEONPEND LL_LPM_EnableEventOnPend. More...
 
__STATIC_INLINE void LL_LPM_DisableEventOnPend (void)
 Only enabled interrupts or events can wakeup the processor, disabled interrupts are excluded SCB_SCR SEVEONPEND LL_LPM_DisableEventOnPend. More...
 

Detailed Description

Function Documentation

◆ LL_LPM_DisableEventOnPend()

__STATIC_INLINE void LL_LPM_DisableEventOnPend ( void  )

Only enabled interrupts or events can wakeup the processor, disabled interrupts are excluded SCB_SCR SEVEONPEND LL_LPM_DisableEventOnPend.

Return values
None

Definition at line 369 of file stm32l4xx_ll_cortex.h.

370 {
371  /* Clear SEVEONPEND bit of Cortex System Control Register */
372  CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SEVONPEND_Msk));
373 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_LPM_DisableSleepOnExit()

__STATIC_INLINE void LL_LPM_DisableSleepOnExit ( void  )

Do not sleep when returning to Thread mode. SCB_SCR SLEEPONEXIT LL_LPM_DisableSleepOnExit.

Return values
None

Definition at line 345 of file stm32l4xx_ll_cortex.h.

346 {
347  /* Clear SLEEPONEXIT bit of Cortex System Control Register */
348  CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPONEXIT_Msk));
349 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_LPM_EnableDeepSleep()

__STATIC_INLINE void LL_LPM_EnableDeepSleep ( void  )

Processor uses deep sleep as its low power mode SCB_SCR SLEEPDEEP LL_LPM_EnableDeepSleep.

Return values
None

Definition at line 321 of file stm32l4xx_ll_cortex.h.

322 {
323  /* Set SLEEPDEEP bit of Cortex System Control Register */
324  SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk));
325 }

◆ LL_LPM_EnableEventOnPend()

__STATIC_INLINE void LL_LPM_EnableEventOnPend ( void  )

Enabled events and all interrupts, including disabled interrupts, can wakeup the processor. SCB_SCR SEVEONPEND LL_LPM_EnableEventOnPend.

Return values
None

Definition at line 357 of file stm32l4xx_ll_cortex.h.

358 {
359  /* Set SEVEONPEND bit of Cortex System Control Register */
360  SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SEVONPEND_Msk));
361 }

◆ LL_LPM_EnableSleep()

__STATIC_INLINE void LL_LPM_EnableSleep ( void  )

Processor uses sleep as its low power mode SCB_SCR SLEEPDEEP LL_LPM_EnableSleep.

Return values
None

Definition at line 310 of file stm32l4xx_ll_cortex.h.

311 {
312  /* Clear SLEEPDEEP bit of Cortex System Control Register */
313  CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk));
314 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_LPM_EnableSleepOnExit()

__STATIC_INLINE void LL_LPM_EnableSleepOnExit ( void  )

Configures sleep-on-exit when returning from Handler mode to Thread mode.

Note
Setting this bit to 1 enables an interrupt-driven application to avoid returning to an empty main application. SCB_SCR SLEEPONEXIT LL_LPM_EnableSleepOnExit
Return values
None

Definition at line 334 of file stm32l4xx_ll_cortex.h.

335 {
336  /* Set SLEEPONEXIT bit of Cortex System Control Register */
337  SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPONEXIT_Msk));
338 }