Is it possible to redefine delay and delaymicros function with #define ? I want to use timer2 interrupt instead of these.
Something like this:
#define delay(unisgned long ms) countMicros(uint16_t top, uint16_t storageVar)
setup(){}
loop(){
delay();// function countMicros is called instead.
}
void countMicros(uint16_t top, uint16_t storageVar){
//...}