The AAG weather station that I'm reprogramming has the Hall effect for wind speed connected to T0. Reconnecting it to a different input would be a major pita so i'd rather not.
Since Timer0 is used by the system, I can't just commandeer it for my own purpose without disabling the Timer0 ISR. What is the best way to do that?
I've considered commenting out it's initialization routine in wiring.h void init() and then redefining SIGNAL(TIMER0_OVF_vect). Is there more to it than that? I realize I'll lose millis() and some PWM but that doesn't concern me.
However, this does not remove the code inside the ISR form the hexfile. Fortunately in case of Timer0 it is just a few bytes. So I guess what you were planning is the way to go. Now it would be good to know if delay is used in the core libraries themselves.
The most obvious thing is that everything that uses an unmodified delay() will hang for quite a while. I guess the frequency of your hall sensor will be lower than the clock rate of the unmodified timer0.
EmilyJane:
I'll have to write my own delay(). I intend to repurpose the other timer/counters anyway, it's just a pity that AAG didn't use a different pin.
You shouldn't have to roll your own from scratch (unless you wish to), avr-libc has the following available: