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
@@ -31,8 +31,8 @@ uint16_t getTmr2MHz();
#include "hal.h"
void init2MhzTimer();
void init5msTimer();
void stop5msTimer();
void init1msTimer();
void stop1msTimer();
static inline uint16_t getTmr2MHz() { return TIMER_2MHz_TIMER->CNT; }
@@ -48,3 +48,5 @@ static inline tmr10ms_t get_tmr10ms()
{
return g_tmr10ms;
}
uint32_t timersGetMsTick();