/* This function configures the Cortex-M SysTick source of the time base.  */
void LL_InitTick(uint32_t HCLKFrequency, uint32_t Ticks)
/* This function configures the Cortex-M SysTick source of the time base.  */
void LL_InitTick(uint32_t HCLKFrequency, uint32_t Ticks)
{
  SysTick->LOAD  = (uint32_t)((HCLKFrequency / Ticks) - 1UL);
  SysTick->VAL   = 0UL;
  SysTick->CTRL  = SysTick_CTRL_CLKSOURCE_Msk |
                   SysTick_CTRL_ENABLE_Msk;
}