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.
LL_Init1msTick
void LL_Init1msTick (uint32_t HCLKFrequency)
This function configures the Cortex-M SysTick source to have 1ms
time base.
HCLKFrequency: HCLK frequency in Hz
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.
HCLK frequency can be calculated thanks to RCC helper
macro or function LL_RCC_GetSystemClocksFreq
LL_mDelay
void LL_mDelay (uint32_t Delay)
This function provides accurate delay (in milliseconds) based on
SysTick counter flag.
Delay: specifies the delay time length, in milliseconds.
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
LL_SetSystemCoreClock
void LL_SetSystemCoreClock (uint32_t HCLKFrequency)
This function sets directly SystemCoreClock CMSIS variable.
HCLKFrequency: HCLK frequency in Hz (can be calculated
thanks to RCC helper macro)
Variable can be calculated also through
SystemCoreClockUpdate function.
LL_PLL_ConfigSystemClock_HSI
ErrorStatus LL_PLL_ConfigSystemClock_HSI
(LL_UTILS_PLLInitTypeDef * UTILS_PLLInitStruct,
LL_UTILS_ClkInitTypeDef * UTILS_ClkInitStruct)
This function configures system clock at maximum frequency with
HSI as clock source of the PLL.