
if (delay_counter == 0)
{
  TimerExpired = TRUE;
}