/* 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)
{
  HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000);
  HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority ,0);
  return HAL_OK;
}