fix: RTOS independent 1ms tick count for HAL (#3178)

* fix: use a 1ms HW timer to generate a RTOS independend 1ms tick counter for HAL

* fix comments
This commit is contained in:
Malte Langermann
2023-02-13 16:35:11 +10:00
committed by GitHub
parent 60cdb897ee
commit 070b255647
7 changed files with 36 additions and 19 deletions
@@ -20,9 +20,9 @@
*/
#include "stm32_hal.h"
#include "rtos.h"
#include "timers_driver.h"
extern "C" uint32_t HAL_GetTick(void)
{
return RTOS_GET_MS();
return timersGetMsTick();
}