[color] Move touch panel init to UI task
This allows for the timeout checks in I2C code to work properly as they are based on SysTick IRQ, which is started by FreeRTOS when the scheduler is started. Resolves #803
This commit is contained in:
committed by
Raphael Coeffic
parent
a4af85ef37
commit
004989ea57
@@ -246,10 +246,6 @@ void boardInit()
|
||||
DBGMCU_APB1PeriphConfig(DBGMCU_IWDG_STOP|DBGMCU_TIM1_STOP|DBGMCU_TIM2_STOP|DBGMCU_TIM3_STOP|DBGMCU_TIM4_STOP|DBGMCU_TIM5_STOP|DBGMCU_TIM6_STOP|DBGMCU_TIM7_STOP|DBGMCU_TIM8_STOP|DBGMCU_TIM9_STOP|DBGMCU_TIM10_STOP|DBGMCU_TIM11_STOP|DBGMCU_TIM12_STOP|DBGMCU_TIM13_STOP|DBGMCU_TIM14_STOP, ENABLE);
|
||||
#endif
|
||||
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
touchPanelInit();
|
||||
#endif
|
||||
|
||||
ledInit();
|
||||
|
||||
#if defined(USB_CHARGER)
|
||||
|
||||
@@ -224,6 +224,10 @@ TASK_FUNCTION(menusTask)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(HARDWARE_TOUCH) && !defined(PCBFLYSKY) && !defined(SIMU)
|
||||
touchPanelInit();
|
||||
#endif
|
||||
|
||||
opentxInit();
|
||||
|
||||
#if defined(PWR_BUTTON_PRESS)
|
||||
|
||||
Reference in New Issue
Block a user