core: Reworked the cycle timers
authorMichel Pollet <buserror@gmail.com>
Thu, 17 Dec 2009 19:56:01 +0000 (19:56 +0000)
committerMichel Pollet <buserror@gmail.com>
Thu, 17 Dec 2009 19:56:01 +0000 (19:56 +0000)
commit9475768fbc5ceebb6b648909040e48c5de7efa03
tree6ee7538e84d3a312b7bed9f6f83715e8fae6defc
parent3cee361fbf6efd5b4fc76509efadc4a7aff977ce
core: Reworked the cycle timers

Ensure that a timer when called does not continue to have a
"call next" that is smaller than the current cycle, bogging
down the rest of the core.
Also ensure the cycle is always incremented by at least one
when sleeping, even if a cycle callback is called.

Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/sim/sim_avr.c