STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE uint32_t LL_SYSTICK_IsActiveCounterFlag (void)
 This function checks if the Systick counter flag is active or not. More...
 
__STATIC_INLINE void LL_SYSTICK_SetClkSource (uint32_t Source)
 Configures the SysTick clock source STK_CTRL CLKSOURCE LL_SYSTICK_SetClkSource. More...
 
__STATIC_INLINE uint32_t LL_SYSTICK_GetClkSource (void)
 Get the SysTick clock source STK_CTRL CLKSOURCE LL_SYSTICK_GetClkSource. More...
 
__STATIC_INLINE void LL_SYSTICK_EnableIT (void)
 Enable SysTick exception request STK_CTRL TICKINT LL_SYSTICK_EnableIT. More...
 
__STATIC_INLINE void LL_SYSTICK_DisableIT (void)
 Disable SysTick exception request STK_CTRL TICKINT LL_SYSTICK_DisableIT. More...
 
__STATIC_INLINE uint32_t LL_SYSTICK_IsEnabledIT (void)
 Checks if the SYSTICK interrupt is enabled or disabled. STK_CTRL TICKINT LL_SYSTICK_IsEnabledIT. More...
 

Detailed Description

Function Documentation

◆ LL_SYSTICK_DisableIT()

__STATIC_INLINE void LL_SYSTICK_DisableIT ( void  )

Disable SysTick exception request STK_CTRL TICKINT LL_SYSTICK_DisableIT.

Return values
None

Definition at line 282 of file stm32l4xx_ll_cortex.h.

283 {
284  CLEAR_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk);
285 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_SYSTICK_EnableIT()

__STATIC_INLINE void LL_SYSTICK_EnableIT ( void  )

Enable SysTick exception request STK_CTRL TICKINT LL_SYSTICK_EnableIT.

Return values
None

Definition at line 272 of file stm32l4xx_ll_cortex.h.

273 {
274  SET_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk);
275 }

◆ LL_SYSTICK_GetClkSource()

__STATIC_INLINE uint32_t LL_SYSTICK_GetClkSource ( void  )

Get the SysTick clock source STK_CTRL CLKSOURCE LL_SYSTICK_GetClkSource.

Return values
Returnedvalue can be one of the following values:
  • LL_SYSTICK_CLKSOURCE_HCLK_DIV8
  • LL_SYSTICK_CLKSOURCE_HCLK

Definition at line 262 of file stm32l4xx_ll_cortex.h.

263 {
264  return READ_BIT(SysTick->CTRL, LL_SYSTICK_CLKSOURCE_HCLK);
265 }

◆ LL_SYSTICK_IsActiveCounterFlag()

__STATIC_INLINE uint32_t LL_SYSTICK_IsActiveCounterFlag ( void  )

This function checks if the Systick counter flag is active or not.

Note
It can be used in timeout function on application side. STK_CTRL COUNTFLAG LL_SYSTICK_IsActiveCounterFlag
Return values
Stateof bit (1 or 0).

Definition at line 230 of file stm32l4xx_ll_cortex.h.

231 {
232  return ((SysTick->CTRL & SysTick_CTRL_COUNTFLAG_Msk) == (SysTick_CTRL_COUNTFLAG_Msk));
233 }

◆ LL_SYSTICK_IsEnabledIT()

__STATIC_INLINE uint32_t LL_SYSTICK_IsEnabledIT ( void  )

Checks if the SYSTICK interrupt is enabled or disabled. STK_CTRL TICKINT LL_SYSTICK_IsEnabledIT.

Return values
Stateof bit (1 or 0).

Definition at line 292 of file stm32l4xx_ll_cortex.h.

293 {
294  return (READ_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk) == (SysTick_CTRL_TICKINT_Msk));
295 }

◆ LL_SYSTICK_SetClkSource()

__STATIC_INLINE void LL_SYSTICK_SetClkSource ( uint32_t  Source)

Configures the SysTick clock source STK_CTRL CLKSOURCE LL_SYSTICK_SetClkSource.

Parameters
SourceThis parameter can be one of the following values:
  • LL_SYSTICK_CLKSOURCE_HCLK_DIV8
  • LL_SYSTICK_CLKSOURCE_HCLK
Return values
None

Definition at line 243 of file stm32l4xx_ll_cortex.h.

244 {
245  if (Source == LL_SYSTICK_CLKSOURCE_HCLK)
246  {
247  SET_BIT(SysTick->CTRL, LL_SYSTICK_CLKSOURCE_HCLK);
248  }
249  else
250  {
251  CLEAR_BIT(SysTick->CTRL, LL_SYSTICK_CLKSOURCE_HCLK);
252  }
253 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)