C
#define MILLISECDELAY (WORD) ((GetInstructionClock()/DELAY_PRESCALER/(WORD)1000) - DELAY_OVERHEAD)
Description
An approximate calculation of how many times to loop to delay 1 ms in the Delayms function
#define MILLISECDELAY (WORD) ((GetInstructionClock()/DELAY_PRESCALER/(WORD)1000) - DELAY_OVERHEAD)
An approximate calculation of how many times to loop to delay 1 ms in the Delayms function