Move Config back to tactility project (#15)

This commit is contained in:
Ken Van Hoeylandt
2024-01-20 16:23:33 +01:00
committed by GitHub
parent e2209ccba8
commit 18a5c5aa45
11 changed files with 601 additions and 435 deletions
+6 -9
View File
@@ -1,6 +1,5 @@
#include "board_config.h"
#include "tactility-esp.h"
#include "services/loader/loader.h"
// Apps
#include "hello_world/hello_world.h"
@@ -13,11 +12,6 @@ extern const AppManifest wifi_manage_app;
TT_UNUSED void app_main(void) {
static const Config config = {
/**
* Auto-select a board based on the ./sdkconfig.board.* file
* that you copied to ./sdkconfig before you opened this project.
*/
.hardware = TT_BOARD_HARDWARE,
.apps = {
&hello_world_app,
&wifi_connect_app,
@@ -29,10 +23,13 @@ TT_UNUSED void app_main(void) {
.auto_start_app_id = NULL
};
tt_esp_init(&config);
tt_init(&config.apps, CONFIG_APPS_LIMIT, &config.services, CONFIG_SERVICES_LIMIT);
/**
* Auto-select a board based on the ./sdkconfig.board.* file
* that you copied to ./sdkconfig before you opened this project.
*/
tt_esp_init(TT_BOARD_HARDWARE);
loader_start_app("desktop", true, NULL);
tt_init(&config);
wifi_main(NULL);
}