From c401b06a7972ee1ed6b6c00cb9d8a6ef5f1a4bf9 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 14 May 2017 08:36:23 -0400 Subject: [PATCH] #414 --- firmware/config/stm32f4ems/mcuconf.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/firmware/config/stm32f4ems/mcuconf.h b/firmware/config/stm32f4ems/mcuconf.h index 300751e786..b79c414184 100644 --- a/firmware/config/stm32f4ems/mcuconf.h +++ b/firmware/config/stm32f4ems/mcuconf.h @@ -20,7 +20,15 @@ #include "efifeatures.h" #include "rusefi_enums.h" -#define SCHEDULING_TIMER_PRIORITY 4 +/** + * This is about SingleTimerExecutor - rusEfi 1MHz precise scheduling timer + * this is not about ChibiOS virtual timer which rusEfi uses for + * periodicFastCallback and periodicSlowCallback + */ +#define PRECISE_SCHEDULING_TIMER_PRIORITY 4 +/** + * Input Capture Unit is how we capture shaft position sensors output + */ #define ICU_PRIORITY 3 /* @@ -150,7 +158,7 @@ #define STM32_GPT_TIM2_IRQ_PRIORITY 7 #define STM32_GPT_TIM3_IRQ_PRIORITY 7 #define STM32_GPT_TIM4_IRQ_PRIORITY 7 -#define STM32_GPT_TIM5_IRQ_PRIORITY SCHEDULING_TIMER_PRIORITY +#define STM32_GPT_TIM5_IRQ_PRIORITY PRECISE_SCHEDULING_TIMER_PRIORITY #define STM32_GPT_TIM6_IRQ_PRIORITY 7 #define STM32_GPT_TIM7_IRQ_PRIORITY 7 #define STM32_GPT_TIM8_IRQ_PRIORITY 7