TactilityC improvements (#359)

- Expose HAL Configuration's `UiScale`
- Updated docs
- Fix for `tt_timer_alloc()`
- Changed `enum class` to regular C `enum`
- Renamed enums (add prefix)
- Include `<stdbool.h>` where needed
This commit is contained in:
Ken Van Hoeylandt
2025-10-05 18:31:54 +02:00
committed by GitHub
parent 3802679de4
commit 15de4e20b8
16 changed files with 117 additions and 26 deletions
+13
View File
@@ -0,0 +1,13 @@
#include "tt_hal.h"
#include <Tactility/Tactility.h>
#include <Tactility/hal/Configuration.h>
extern "C" {
UiScale tt_hal_configuration_get_ui_scale() {
auto scale = tt::hal::getConfiguration()->uiScale;
return static_cast<UiScale>(scale);
}
}