Closed astralien3000 closed 10 years ago
Is it really only for one timer? The others work properly? :astonished:
Timer 0 works well (because our robot wouldn't have moved if it did not). Timer 2 and 3 (if it exists on the microcontroller) are not even managed by the .archi files.
Yeah timer 0 is used by the scheduler. Does timer 1 exist on every AVR? Because we could maybe, one day, implement Aversive::sleep with it.
For timer 2 and 3, for the microcontrollers that have them, we should add them one day or another. Likewise for the missing pins on Atmega2560, I will add them because I need them anyway to fully implement my Arduino 2560 mega's pin map (well, it is actually already done, just have to take the time to commit and push).
did you do the same than in scheduler.cpp or you forgot something ?
(i see : init(), setPrescaler
It is not a single test that doesn't work, every time that I used timer 1 it didn't work, and timer 0 is ok with the same code.
I really have to fix the problem with timers