#ifndef ___UTILS_H #define ___UTILS_H #include "global.h" #ifdef FCPU1 #define UTILLOOPMINDELAY DELAY1us #endif #ifdef FCPU2 #define UTILLOOPMINDELAY DELAY1us #endif #ifdef FCPU4 #define UTILLOOPMINDELAY DELAY1us #endif #ifdef FCPU8 #define UTILLOOPMINDELAY DELAY1us #endif #ifdef FCPU11 #define UTILLOOPMINDELAY DELAY994ns #endif #ifdef FCPU14 #define UTILLOOPMINDELAY DELAY949ns #endif #ifdef FCPU16 #define UTILLOOPMINDELAY DELAY937ns #endif extern void Delay1ms(unsigned int); extern void Delay100us(unsigned char); extern void Delay1us(unsigned char); extern int BCD2INT( BCD16 BCDValue ); extern BCD16 INT2BCD( int INTValue ); #ifdef MAXMONTHDAYSUSED extern unsigned char get_maxmonthdays( int month, int year ); #endif #endif