From bf80b7d5832bc17605a9a9ecc88ba364ef1a55b0 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Fri, 2 Jan 2026 21:43:15 +0100 Subject: [PATCH] Fixes --- .../Source/devices/TpagerKeyboard.cpp | 16 ++++++++-------- TactilityC/Source/symbols/freertos.cpp | 6 ------ 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/Devices/lilygo-tlora-pager/Source/devices/TpagerKeyboard.cpp b/Devices/lilygo-tlora-pager/Source/devices/TpagerKeyboard.cpp index 89535ad9..366ac44f 100644 --- a/Devices/lilygo-tlora-pager/Source/devices/TpagerKeyboard.cpp +++ b/Devices/lilygo-tlora-pager/Source/devices/TpagerKeyboard.cpp @@ -1,11 +1,11 @@ #include "TpagerKeyboard.h" + #include -#include - -#include - #include +#include +#include + constexpr auto* TAG = "TpagerKeyboard"; constexpr auto BACKLIGHT = GPIO_NUM_46; @@ -120,12 +120,12 @@ bool TpagerKeyboard::startLvgl(lv_display_t* display) { keypad->init(KB_ROWS, KB_COLS); assert(inputTimer == nullptr); - inputTimer = std::make_unique(tt::Timer::Type::Periodic, [this] { + inputTimer = std::make_unique(tt::Timer::Type::Periodic, tt::kernel::millisToTicks(20), [this] { processKeyboard(); }); assert(backlightImpulseTimer == nullptr); - backlightImpulseTimer = std::make_unique(tt::Timer::Type::Periodic, [this] { + backlightImpulseTimer = std::make_unique(tt::Timer::Type::Periodic, tt::kernel::millisToTicks(50), [this] { processBacklightImpulse(); }); @@ -135,8 +135,8 @@ bool TpagerKeyboard::startLvgl(lv_display_t* display) { lv_indev_set_display(kbHandle, display); lv_indev_set_user_data(kbHandle, this); - inputTimer->start(20 / portTICK_PERIOD_MS); - backlightImpulseTimer->start(50 / portTICK_PERIOD_MS); + inputTimer->start(); + backlightImpulseTimer->start(); return true; } diff --git a/TactilityC/Source/symbols/freertos.cpp b/TactilityC/Source/symbols/freertos.cpp index 3d067a8a..ea6de29a 100644 --- a/TactilityC/Source/symbols/freertos.cpp +++ b/TactilityC/Source/symbols/freertos.cpp @@ -28,14 +28,8 @@ const esp_elfsym freertos_symbols[] = { ESP_ELFSYM_EXPORT(xTaskDelayUntil), ESP_ELFSYM_EXPORT(xTaskGenericNotify), ESP_ELFSYM_EXPORT(xTaskGenericNotifyFromISR), - ESP_ELFSYM_EXPORT(xTaskCreatePinnedToCore), ESP_ELFSYM_EXPORT(pvTaskGetThreadLocalStoragePointer), ESP_ELFSYM_EXPORT(pvTaskIncrementMutexHeldCount), - ESP_ELFSYM_EXPORT(vTaskSetTaskNumber), - ESP_ELFSYM_EXPORT(vTaskSetThreadLocalStoragePointer), - ESP_ELFSYM_EXPORT(vTaskSetThreadLocalStoragePointerAndDelCallback), - ESP_ELFSYM_EXPORT(vTaskSetTimeOutState), - ESP_ELFSYM_EXPORT(vTaskPrioritySet), ESP_ELFSYM_EXPORT(uxTaskGetStackHighWaterMark), ESP_ELFSYM_EXPORT(uxTaskGetNumberOfTasks), ESP_ELFSYM_EXPORT(uxTaskGetTaskNumber),