From da7b98be44c4aea341d082a51517fe5633486326 Mon Sep 17 00:00:00 2001 From: CarlWachter Date: Mon, 17 Jun 2024 11:31:44 +0200 Subject: [PATCH] cleanup: cmsis-rtos for kernel frequency --- src/thread.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/thread.cpp b/src/thread.cpp index bfb3058..e13863d 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -15,10 +15,6 @@ #include #include -// Include FreeRTOS configuration for the system tick rate. -typedef uint32_t TickType_t; -#include - namespace sta { namespace tacos @@ -126,7 +122,7 @@ namespace sta previous_tick_ = osKernelGetTickCount(); } - previous_tick_ += configTICK_RATE_HZ/frequency; + previous_tick_ += osKernelGetTickFreq()/frequency; #ifdef STA_TACOS_WATCHDOG_ENABLED waiting();