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:
committed by
GitHub
parent
a94baf0d00
commit
6bd65abbb4
+21
-4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user