STM32F439xx HAL User Manual
Functions
DELAY
UTILS Exported Functions

Functions

void LL_Init1msTick (uint32_t HCLKFrequency)
 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.

Function Documentation

void LL_Init1msTick ( uint32_t  HCLKFrequency)

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:
HCLKFrequencyHCLK frequency in Hz
Note:
HCLK frequency can be calculated thanks to RCC helper macro or function LL_RCC_GetSystemClocksFreq
Return values:
None

Definition at line 275 of file stm32f4xx_ll_utils.c.

References 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

Definition at line 277 of file stm32f4xx_ll_utils.h.

Referenced by LL_Init1msTick().

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

Definition at line 291 of file stm32f4xx_ll_utils.c.

References LL_MAX_DELAY.