Fixed interrupt prio

This commit is contained in:
Raphael Coeffic
2021-07-31 17:31:50 +02:00
parent 40609f5d67
commit 421d19bc6b
2 changed files with 2 additions and 2 deletions
@@ -52,7 +52,7 @@ void init_intmodule_heartbeat()
NVIC_SetPriority(INTMODULE_HEARTBEAT_EXTI_IRQn,
// Highest priority interrupt
// TODO: replace with a define...
configMAX_SYSCALL_INTERRUPT_PRIORITY);
configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
NVIC_EnableIRQ(INTMODULE_HEARTBEAT_EXTI_IRQn);
heartbeatCapture.valid = true;
@@ -40,7 +40,7 @@ void mixerSchedulerStart()
NVIC_EnableIRQ(MIXER_SCHEDULER_TIMER_IRQn);
NVIC_SetPriority(MIXER_SCHEDULER_TIMER_IRQn,
// TODO: replace with a define...
configMAX_SYSCALL_INTERRUPT_PRIORITY);
configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);
MIXER_SCHEDULER_TIMER->SR &= TIM_SR_UIF; // clear interrupt flag
MIXER_SCHEDULER_TIMER->DIER |= TIM_DIER_UIE; // enable interrupt