Select missions with right encoder

This commit is contained in:
2023-03-07 20:13:28 +01:00
parent 7476e09fed
commit 38d3d765ad
53 changed files with 29689 additions and 39549 deletions

View File

@ -21,15 +21,15 @@
/* Includes ------------------------------------------------------------------*/
#include "app_azure_rtos.h"
#include "app_touchgfx.h"
#include "stm32h7xx.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "app.h"
#include "graphics.h"
#include "main.h"
#include "tx_api.h"
#include "tx_port.h"
#include "ui.h"
/* USER CODE END Includes */
@ -63,7 +63,8 @@ static TX_BYTE_POOL tx_app_byte_pool;
/* USER CODE BEGIN PV */
TX_THREAD app_thread;
TX_THREAD graphics_thread;
TX_THREAD ui_thread;
TX_QUEUE ui_queue;
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
@ -157,12 +158,22 @@ VOID tx_application_define(VOID *first_unused_memory) {
Error_Handler();
}
void *graphics_thread_stack = mem;
void *ui_queue_start = mem;
ULONG ui_queue_msg_size = sizeof(UIMessage) / sizeof(ULONG);
if (ui_queue_msg_size % sizeof(ULONG) != 0) {
ui_queue_msg_size++;
}
mem += UI_QUEUE_SIZE * ui_queue_msg_size;
if (tx_queue_create(&ui_queue, "UI Queue", ui_queue_msg_size, ui_queue_start,
UI_QUEUE_SIZE * ui_queue_msg_size) != TX_SUCCESS) {
Error_Handler();
}
void *ui_thread_stack = mem;
mem += THREAD_STACK_SIZE;
if (tx_thread_create(&graphics_thread, "Graphics Thread",
graphics_thread_entry, 0, graphics_thread_stack,
THREAD_STACK_SIZE, THREAD_PRIO_GRAPHICS,
THREAD_PRIO_GRAPHICS, TX_NO_TIME_SLICE,
if (tx_thread_create(&ui_thread, "UI Thread", ui_thread_entry, 0,
ui_thread_stack, THREAD_STACK_SIZE, THREAD_PRIO_UI,
THREAD_PRIO_UI, TX_NO_TIME_SLICE,
TX_AUTO_START) != TX_SUCCESS) {
Error_Handler();
}

View File

@ -44,8 +44,8 @@ extern "C" {
#define THREAD_STACK_SIZE 4096
#define THREAD_PRIO_APP 10
#define THREAD_PRIO_GRAPHICS 20
#define THREAD_PRIO_UI 5
#define THREAD_PRIO_UI 6
#define UI_QUEUE_SIZE 10
/* USER CODE END EC */
/* Exported macro ------------------------------------------------------------*/