/* This function provides accurate delay (in milliseconds) based on variable incremented.  */
__weak void HAL_Delay(__IO uint32_t Delay)
/* This function provides accurate delay (in milliseconds) based on variable incremented.  */
__weak void HAL_Delay(__IO uint32_t Delay)
{
  uint32_t tickstart = 0;
  tickstart = HAL_GetTick();
  while((HAL_GetTick() - tickstart) < Delay)
  {
  }
}