This commit is contained in:
rusefi 2017-05-14 08:36:23 -04:00
parent a926c19005
commit c401b06a79
1 changed files with 10 additions and 2 deletions

View File

@ -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