void DelayUSec (uint32_t Time) { Delay_Done = 0; while(!Delay_Done); }
void Handler (void) { if (Stat & 0x01) { if (!Delay_Done) Delay_Done = 1; }
}
it never come out of my loop
Here, for starters: http://www.keil.com/forum/docs/thread16698.asp