/* * Delay functions du hi-tech modifié pour biosdem * * Make sure this code is compiled with full optimization!!! */ #include "biosdem.h" void _IT_DelayMs(unsigned char cnt) { #if XTAL_FREQ <= 2MHZ do { _IT_DelayUs(996); } while(--cnt); #endif #if XTAL_FREQ > 2MHZ unsigned char i; do { i = 4; do { _IT_DelayUs(250); } while(--i); } while(--cnt); #endif }