mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 08:35:59 +00:00
cleanup: cmsis-rtos for kernel frequency
This commit is contained in:
parent
40727728d0
commit
da7b98be44
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user