2026-01-17 14:40:03 +01:00

32 lines
720 B
C++

#include <Tactility/Tactility.h>
#include <devicetree.h>
#ifdef ESP_PLATFORM
#include <tt_init.h>
#else
#include <Simulator.h>
#endif
// Each board project declares this variable
extern const tt::hal::Configuration hardwareConfiguration;
extern "C" {
void app_main() {
static const tt::Configuration config = {
/**
* Auto-select a board based on the ./sdkconfig.board.* file
* that you copied to ./sdkconfig before you opened this project.
*/
.hardware = &hardwareConfiguration
};
#ifdef ESP_PLATFORM
tt_init_tactility_c(); // ELF bindings for side-loading on ESP32
#endif
auto devices = devices_builtin_get();
tt::run(config, devices);
}
} // extern