/* This function provides minimum delay (in milliseconds) based on variable incremented.  */
__weak void HAL_Delay(uint32_t Delay)
/* This function provides minimum delay (in milliseconds) based on variable incremented.  */
__weak void HAL_Delay(uint32_t Delay)
{
  uint32_t tickstart = HAL_GetTick();
  uint32_t wait = Delay;
  if (wait < HAL_MAX_DELAY)
  {
    wait += (uint32_t)(uwTickFreq);
  }
  while ((HAL_GetTick() - tickstart) < wait)
  {
  }
}