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
Look-up the standard 'C' keyword volatile in your textbook...
See also: blog.regehr.org/.../28