mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
* **Refactor** * GPIO subsystem moved to a descriptor-based model for per-pin ownership and runtime pin management; many platform drivers now acquire/release descriptors. * Device trees and drivers now use GPIO phandle-style pin specifications across all boards and all drivers. * **Behavior** * Device list now encodes per-device status (ok/disabled); boot will skip disabled devices accordingly. * **Deprecation** * Legacy GPIO HAL marked deprecated and replaced with descriptor-based interfaces. * **Chores** * Bindings and platform configs updated to the new GPIO pin-spec format.
38 lines
880 B
C++
38 lines
880 B
C++
#include <Tactility/Tactility.h>
|
|
|
|
#include <tactility/driver.h>
|
|
#include <devicetree.h>
|
|
|
|
// From the relevant platform
|
|
extern struct Module platform_module;
|
|
// From the relevant device
|
|
extern struct Module device_module;
|
|
|
|
#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
|
|
|
|
tt::run(config, &platform_module, &device_module, dts_devices);
|
|
}
|
|
|
|
} // extern
|