Prusa MINI Firmware overview
Collaboration diagram for SYSTICK:

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 @rmtoll STK_CTRL CLKSOURCE LL_SYSTICK_SetClkSource. More...
 
__STATIC_INLINE uint32_t LL_SYSTICK_GetClkSource (void)
 Get the SysTick clock source @rmtoll STK_CTRL CLKSOURCE LL_SYSTICK_GetClkSource. More...
 
__STATIC_INLINE void LL_SYSTICK_EnableIT (void)
 Enable SysTick exception request @rmtoll STK_CTRL TICKINT LL_SYSTICK_EnableIT. More...
 
__STATIC_INLINE void LL_SYSTICK_DisableIT (void)
 Disable SysTick exception request @rmtoll STK_CTRL TICKINT LL_SYSTICK_DisableIT. More...
 
__STATIC_INLINE uint32_t LL_SYSTICK_IsEnabledIT (void)
 Checks if the SYSTICK interrupt is enabled or disabled. @rmtoll STK_CTRL TICKINT LL_SYSTICK_IsEnabledIT. More...
 

Detailed Description

Function Documentation

◆ 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. @rmtoll STK_CTRL COUNTFLAG LL_SYSTICK_IsActiveCounterFlag
Return values
Stateof bit (1 or 0).
248 {
249  return ((SysTick->CTRL & SysTick_CTRL_COUNTFLAG_Msk) == (SysTick_CTRL_COUNTFLAG_Msk));
250 }

◆ LL_SYSTICK_SetClkSource()

__STATIC_INLINE void LL_SYSTICK_SetClkSource ( uint32_t  Source)

Configures the SysTick clock source @rmtoll STK_CTRL CLKSOURCE LL_SYSTICK_SetClkSource.

Parameters
SourceThis parameter can be one of the following values:
Return values
None
261 {
262  if (Source == LL_SYSTICK_CLKSOURCE_HCLK)
263  {
264  SET_BIT(SysTick->CTRL, LL_SYSTICK_CLKSOURCE_HCLK);
265  }
266  else
267  {
268  CLEAR_BIT(SysTick->CTRL, LL_SYSTICK_CLKSOURCE_HCLK);
269  }
270 }

◆ LL_SYSTICK_GetClkSource()

__STATIC_INLINE uint32_t LL_SYSTICK_GetClkSource ( void  )

Get the SysTick clock source @rmtoll STK_CTRL CLKSOURCE LL_SYSTICK_GetClkSource.

Return values
Returnedvalue can be one of the following values:
280 {
281  return READ_BIT(SysTick->CTRL, LL_SYSTICK_CLKSOURCE_HCLK);
282 }

◆ LL_SYSTICK_EnableIT()

__STATIC_INLINE void LL_SYSTICK_EnableIT ( void  )

Enable SysTick exception request @rmtoll STK_CTRL TICKINT LL_SYSTICK_EnableIT.

Return values
None
290 {
291  SET_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk);
292 }

◆ LL_SYSTICK_DisableIT()

__STATIC_INLINE void LL_SYSTICK_DisableIT ( void  )

Disable SysTick exception request @rmtoll STK_CTRL TICKINT LL_SYSTICK_DisableIT.

Return values
None
300 {
301  CLEAR_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk);
302 }

◆ LL_SYSTICK_IsEnabledIT()

__STATIC_INLINE uint32_t LL_SYSTICK_IsEnabledIT ( void  )

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

Return values
Stateof bit (1 or 0).
310 {
311  return (READ_BIT(SysTick->CTRL, SysTick_CTRL_TICKINT_Msk) == (SysTick_CTRL_TICKINT_Msk));
312 }
LL_SYSTICK_CLKSOURCE_HCLK
#define LL_SYSTICK_CLKSOURCE_HCLK
Definition: stm32f4xx_ll_cortex.h:88