47 #define XTAL_FREQ 3686 53 #if XTAL_FREQ >= 12MHZ 55 #define DelayUs(x) { unsigned char _dcnt; \ 56 _dcnt = (x)*((XTAL_FREQ)/12MHZ); \ 57 while(--_dcnt != 0){ \ 58 CLRWDT(); continue;} } 61 #define DelayUs(x) { unsigned char _dcnt; \ 62 _dcnt = (x)/(12MHZ/(XTAL_FREQ))|1; \ 63 while(--_dcnt != 0){ \ 64 CLRWDT(); continue;} } 69 extern void DelayMs(
unsigned char);
void delay_10us(unsigned char x)
void DelayMs(unsigned char)