Tactility modules refactored (#13)

* refactor modules

* moved esp_lvgl_port to libs/

* added missing file

* fix for sim build

* various sim/pc fixes

* lvgl improvements

* added missing cmake files
This commit is contained in:
Ken Van Hoeylandt
2024-01-20 14:10:19 +01:00
committed by GitHub
parent a94baf0d00
commit 6bd65abbb4
1317 changed files with 388085 additions and 626 deletions
+21 -4
View File
@@ -1,9 +1,16 @@
#include "tactility.h"
#include "board_config.h"
#include "tactility-esp.h"
#include "services/loader/loader.h"
// Apps
#include "hello_world/hello_world.h"
extern void wifi_main(void*);
extern const ServiceManifest wifi_service;
extern const AppManifest wifi_connect_app;
extern const AppManifest wifi_manage_app;
__attribute__((unused)) void app_main(void) {
static const Config config = {
/**
@@ -12,11 +19,21 @@ __attribute__((unused)) void app_main(void) {
*/
.hardware = TT_BOARD_HARDWARE,
.apps = {
&hello_world_app
&hello_world_app,
&wifi_connect_app,
&wifi_manage_app
},
.services = {
&wifi_service
},
.services = { },
.auto_start_app_id = NULL
};
tactility_start(&config);
tt_core_init();
tt_esp_init(&config);
tt_init(&config.apps, CONFIG_APPS_LIMIT, &config.services, CONFIG_SERVICES_LIMIT);
loader_start_app("desktop", true, NULL);
wifi_main(NULL);
}