RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Functions

Functions

void LL_Init1msTick (uint32_t CPU_Frequency)
 This function configures the Cortex-M SysTick source to have 1ms time base.
 
void LL_mDelay (uint32_t Delay)
 This function provides accurate delay (in milliseconds) based on SysTick counter flag.
 
__STATIC_INLINE void LL_InitTick (uint32_t HCLKFrequency, uint32_t Ticks)
 This function configures the Cortex-M SysTick source of the time base.
 

Detailed Description

Function Documentation

◆ LL_Init1msTick()

void LL_Init1msTick ( uint32_t  CPU_Frequency)

This function configures the Cortex-M SysTick source to have 1ms time base.

Note
When a RTOS is used, it is recommended to avoid changing the Systick configuration by calling this function, for a delay use rather osDelay RTOS service.
Parameters
CPU_FrequencyCore frequency in Hz
Note
CPU_Frequency can be calculated thanks to RCC helper macro or function LL_RCC_GetSystemClocksFreq
Return values
None

◆ LL_InitTick()

__STATIC_INLINE void LL_InitTick ( uint32_t  HCLKFrequency,
uint32_t  Ticks 
)

This function configures the Cortex-M SysTick source of the time base.

Parameters
HCLKFrequencyHCLK frequency in Hz (can be calculated thanks to RCC helper macro)
Note
When a RTOS is used, it is recommended to avoid changing the SysTick configuration by calling this function, for a delay use rather osDelay RTOS service.
Parameters
TicksNumber of ticks
Return values
None

◆ LL_mDelay()

void LL_mDelay ( uint32_t  Delay)

This function provides accurate delay (in milliseconds) based on SysTick counter flag.

Note
When a RTOS is used, it is recommended to avoid using blocking delay and use rather osDelay service.
To respect 1ms timebase, user should call LL_Init1msTick function which will configure Systick to 1ms
Parameters
Delayspecifies the delay time length, in milliseconds.
Return values
None