/* This function configures the source of the time base. The time source is configured to have 1ms time base with a dedicated Tick interrupt priority.  */
__weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
/* This function configures the source of the time base. The time source is configured to have 1ms time base with a dedicated Tick interrupt priority.  */
__weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
{
  if((uint32_t)uwTickFreq == 0UL)
  {
    return HAL_ERROR;
  }
    if (HAL_SYSTICK_Config(SystemCoreClock / (1000UL / (uint32_t)uwTickFreq)) > 0U)
    {
      return HAL_ERROR;
    }
  if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  {
    HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
    uwTickPrio = TickPriority;
  }
  else
  {
    return HAL_ERROR;
  }
  return HAL_OK;
}