improved NbApp definition

default values added for task priority and stack size
+ other small improvements
This commit is contained in:
Ken Van Hoeylandt
2023-12-28 00:07:39 +01:00
parent f0cfd3c34d
commit 83ef89cf07
10 changed files with 28 additions and 15 deletions
@@ -2,6 +2,7 @@
#include "nb_hardware.h"
#include "core_defines.h"
#include "esp_log.h"
static int32_t prv_desktop_main(void* param) {
UNUSED(param);
printf("desktop app init\n");
@@ -13,6 +14,6 @@ const NbApp desktop_app = {
.name = "Desktop",
.type = SERVICE,
.entry_point = &prv_desktop_main,
.stack_size = 2048,
.priority = 10
.stack_size = NB_TASK_STACK_SIZE_DEFAULT,
.priority = NB_TASK_PRIORITY_DEFAULT
};
@@ -3,7 +3,7 @@
#include "record.h"
#include "check.h"
#define TAG "Gui"
#define TAG "gui"
// Forward declarations from gui_draw.c
bool gui_redraw_fs(NbGui* gui);
@@ -233,6 +233,6 @@ const NbApp gui_app = {
.name = "GUI",
.type = SERVICE,
.entry_point = &prv_gui_main,
.stack_size = 2048,
.priority = 10
.stack_size = NB_TASK_STACK_SIZE_DEFAULT,
.priority = NB_TASK_PRIORITY_DEFAULT
};
@@ -12,6 +12,6 @@ const NbApp loader_app = {
.name = "Loader",
.type = SERVICE,
.entry_point = &prv_loader_main,
.stack_size = 2048,
.priority = 10
.stack_size = NB_TASK_STACK_SIZE_DEFAULT,
.priority = NB_TASK_PRIORITY_DEFAULT
};