Question
Unhelpful documentation - LL_InitTick
eg, in stm32l0xx_ll_utils.c
/**
* @brief This function configures the Cortex-M SysTick source of the time base.
* HCLKFrequency HCLK 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.
* Ticks Number of ticks
* @retval None
*/
For the 'Ticks' parameter, "Number of ticks" is pretty meaningless - what is this "number"? What does it signify??
It should say, I think, "Number of ticks per second"
Thus LL_Init1msTick does LL_InitTick(HCLKFrequency, 1000U) to give 1000 ticks per second - or 1 tick per millisecond.
