/* Returns the time entered by user, using Hyperterminal.  */
uint32_t Time_Regulate(void)
/* Returns the time entered by user, using Hyperterminal.  */
uint32_t Time_Regulate(void)
{
  uint32_t Tmp_HH = 0xFF, Tmp_MM = 0xFF, Tmp_SS = 0xFF;
  printf("\r\n==============Time Settings=====================================");
  printf("\r\n  Please Set Hours");
  while (Tmp_HH == 0xFF)
  {
    Tmp_HH = USART_Scanf(23);
  }
  printf(":  %d", Tmp_HH);
  printf("\r\n  Please Set Minutes");
  while (Tmp_MM == 0xFF)
  {
    Tmp_MM = USART_Scanf(59);
  }
  printf(":  %d", Tmp_MM);
  printf("\r\n  Please Set Seconds");
  while (Tmp_SS == 0xFF)
  {
    Tmp_SS = USART_Scanf(59);
  }
  printf(":  %d", Tmp_SS);
  return((Tmp_HH*3600 + Tmp_MM*60 + Tmp_SS));
}