app type cleanup and improvements

This commit is contained in:
Ken Van Hoeylandt
2023-12-26 23:35:30 +01:00
parent 88c5c55be3
commit aa24b84eb6
8 changed files with 73 additions and 77 deletions
@@ -1,27 +1,10 @@
#include "desktop.h"
#include "nb_hardware.h"
#include <esp_lvgl_port.h>
#include "core_defines.h"
#include <esp_log.h>
//nb_desktop_t* shared_desktop = NULL;
#include <core_defines.h>
static int32_t prv_desktop_main(void* param) {
UNUSED(param);
printf("desktop app init\n");
// nb_desktop_t* desktop = desktop_alloc();
// shared_desktop = desktop;
// lvgl_port_lock(0);
//
// lv_obj_t* label = lv_label_create(lv_parent);
// lv_label_set_recolor(label, true);
// lv_obj_set_width(label, (lv_coord_t)hardware->display->horizontal_resolution);
// lv_obj_set_style_text_align(label, LV_TEXT_ALIGN_LEFT, 0);
// lv_label_set_text(label, "Desktop app");
// lv_obj_align(label, LV_ALIGN_TOP_LEFT, 0, 0);
//
// lvgl_port_unlock();
return 0;
}
@@ -11,7 +11,7 @@ static int32_t prv_gui_main(void* param) {
const nb_app_t gui_app = {
.id = "gui",
.name = "GUI",
.type = STARTUP,
.type = SERVICE,
.entry_point = &prv_gui_main,
.stack_size = 2048,
.priority = 10
@@ -10,7 +10,7 @@ static int32_t prv_loader_main(void* param) {
const nb_app_t loader_app = {
.id = "loader",
.name = "Loader",
.type = STARTUP,
.type = SERVICE,
.entry_point = &prv_loader_main,
.stack_size = 2048,
.priority = 10