Files
tactility/app-esp/src/main.c
T
Ken Van Hoeylandt 159118f19a Cleanup (#43)
- Updated README.md, screenshot layout
- Cleanup of incorrect `TT_UNUSED` usage
2024-02-11 22:53:59 +01:00

37 lines
809 B
C

#include "board_config.h"
#include "tactility_esp.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;
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,
&wifi_manage_app
},
.services = {
&wifi_service
},
.auto_start_app_id = NULL
};
tt_esp_init();
tt_init(&config);
wifi_main(NULL);
}