|
@@ -6,6 +6,7 @@
|
|
#define MON_DELAY 1000
|
|
#define MON_DELAY 1000
|
|
|
|
|
|
osThreadId menu_update_handle;
|
|
osThreadId menu_update_handle;
|
|
|
|
+osThreadId menu_control_handle;
|
|
|
|
|
|
menuItem* selectedMenuItem;
|
|
menuItem* selectedMenuItem;
|
|
bool update_flag = false;
|
|
bool update_flag = false;
|
|
@@ -27,6 +28,9 @@ void menu_init(void)
|
|
v_task_event_handle = osThreadCreate(osThread(M_Event_Thread), NULL);
|
|
v_task_event_handle = osThreadCreate(osThread(M_Event_Thread), NULL);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+ osThreadDef(control_thr, vControl, osPriorityNormal, 0, 6*configMINIMAL_STACK_SIZE);
|
|
|
|
+ menu_update_handle = osThreadCreate(osThread(control_thr), NULL);
|
|
|
|
+
|
|
// Обновление меню
|
|
// Обновление меню
|
|
osThreadDef(menu_up_thr, vUpdate, osPriorityNormal, 0, 6*configMINIMAL_STACK_SIZE);
|
|
osThreadDef(menu_up_thr, vUpdate, osPriorityNormal, 0, 6*configMINIMAL_STACK_SIZE);
|
|
menu_update_handle = osThreadCreate(osThread(menu_up_thr), NULL);
|
|
menu_update_handle = osThreadCreate(osThread(menu_up_thr), NULL);
|