mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 03:19:53 +03:00
improve sync
This commit is contained in:
parent
5ad3f95cdc
commit
87b78218ad
2 changed files with 4 additions and 1 deletions
|
@ -39,8 +39,9 @@ void mixerSchedulerStart()
|
||||||
NVIC_SetPriority(MIXER_SCHEDULER_TIMER_IRQn, 8);
|
NVIC_SetPriority(MIXER_SCHEDULER_TIMER_IRQn, 8);
|
||||||
|
|
||||||
MIXER_SCHEDULER_TIMER->SR &= TIM_SR_UIF; // clear interrupt flag
|
MIXER_SCHEDULER_TIMER->SR &= TIM_SR_UIF; // clear interrupt flag
|
||||||
MIXER_SCHEDULER_TIMER->DIER |= TIM_DIER_UIE; // enable interrupt
|
|
||||||
MIXER_SCHEDULER_TIMER->CR1 |= TIM_CR1_CEN;
|
MIXER_SCHEDULER_TIMER->CR1 |= TIM_CR1_CEN;
|
||||||
|
|
||||||
|
mixerSchedulerEnableTrigger();
|
||||||
}
|
}
|
||||||
|
|
||||||
void mixerSchedulerStop()
|
void mixerSchedulerStop()
|
||||||
|
@ -58,6 +59,7 @@ void mixerSchedulerResetTimer()
|
||||||
|
|
||||||
void mixerSchedulerEnableTrigger()
|
void mixerSchedulerEnableTrigger()
|
||||||
{
|
{
|
||||||
|
mixerSchedulerClearTrigger();
|
||||||
MIXER_SCHEDULER_TIMER->DIER |= TIM_DIER_UIE; // enable interrupt
|
MIXER_SCHEDULER_TIMER->DIER |= TIM_DIER_UIE; // enable interrupt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,7 @@ TASK_FUNCTION(mixerTask)
|
||||||
s_pulses_paused = true;
|
s_pulses_paused = true;
|
||||||
|
|
||||||
mixerSchedulerInit();
|
mixerSchedulerInit();
|
||||||
|
|
||||||
#if !defined(PCBSKY9X)
|
#if !defined(PCBSKY9X)
|
||||||
mixerSchedulerStart();
|
mixerSchedulerStart();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue