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();