This commit is contained in:
rusefi 2019-05-05 09:41:44 -04:00
parent 0bb8ab2aef
commit 5fd895f1cf
1 changed files with 5 additions and 2 deletions

View File

@ -1,13 +1,16 @@
/**
* @file SingleTimerExecutor.cpp
*
* This class combines the powers of a 1MHz hardware timer from microsecond_timer.c
* This class combines the powers of a 1MHz hardware timer from microsecond_timer.cpp
* and pending events queue event_queue.cpp
*
* As of version 2.6.x, ChibiOS tick-based kernel is not capable of scheduling events
* with the level of precision we need, and realistically it should not.
*
* See https://rusefi.com/forum/viewtopic.php?f=5&t=373&sid=e285ebd9a5677a83235116007e8eb65d&start=360#p30895
* Update: actually newer ChibiOS has tickless mode and what we have here is pretty much the same thing :)
* open question if rusEfi should simply migrate to ChibiOS tickless scheduling (which would increase coupling with ChibiOS)
*
* See https://rusefi.com/forum/viewtopic.php?f=5&t=373&start=360#p30895
* for some performance data: with 'debug' firmware we spend about 5% of CPU in TIM5 handler which seem to be executed
* about 1500 times a second
*