cleanup: cmsis-rtos for kernel frequency

This commit is contained in:
CarlWachter 2024-06-17 11:31:44 +02:00 committed by carlwachter
parent 40727728d0
commit da7b98be44

View File

@ -15,10 +15,6 @@
#include <cstring>
#include <cmsis_os2.h>
// Include FreeRTOS configuration for the system tick rate.
typedef uint32_t TickType_t;
#include <FreeRTOSConfig.h>
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();