STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for DELAY:

Functions

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

Detailed Description

Function Documentation

◆ LL_Init1msTick()

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 257 of file stm32f4xx_ll_utils.c.

◆ 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
TicksFrequency of Ticks (Hz)
Return values
None

Definition at line 260 of file stm32f4xx_ll_utils.h.

◆ 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

Definition at line 273 of file stm32f4xx_ll_utils.c.