This commit is contained in:
rusefi 2019-01-07 15:04:20 -05:00
parent fac61583b2
commit 12810e00a0
1 changed files with 4 additions and 1 deletions

View File

@ -236,7 +236,10 @@ static void scheduleNextSlowInvocation(void) {
static void periodicFastCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
engine->periodicFastCallback();
/**
* not many reasons why we use ChibiOS timer and not say a dedicated thread here
* the only down-side of a dedicated thread is the cost of thread stack
*/
chVTSetAny(&periodicFastTimer, MS2ST(20), (vtfunc_t) &periodicFastCallback, engine);
}