I've been working with a mix of 8-bit AVR, Teensy's, ESP's, STM32 in Arduino for quite a while. Since the same code runs on all of these I developed a kind of protective amnesia WRT int's I think. ;)
Type: Posts; User: hjd
I've been working with a mix of 8-bit AVR, Teensy's, ESP's, STM32 in Arduino for quite a while. Since the same code runs on all of these I developed a kind of protective amnesia WRT int's I think. ;)
The IntervalTimer class uses each timers TCTRL flag to indicate if a given PIT timer is in use so interval timers can be allocated/deallocated in any order as needed. At startup all four TCTRL...
Never mind...
I always assumed int's were forced to 16bit for "Arduino" compatibility. I see both int and long are both 32bit, learn something new every day. ;)
I'm also confused by the overloaded methods casting microseconds from long to int in IntervalTimer.h begin(), possibly I don't understand the code but it looks like a bug to me. I use floats for the...
I've observed the same exact behavior.
I don't see where the other two timers are going (looks like interval timer 0 and 1 are in use or not initialized properly)... or what happens if they are...