makes timer more consistent accros tx and nx

Also adds nx_port for user defines
This commit is contained in:
2026-01-28 16:56:02 +01:00
parent 1d1fbeb2dc
commit d5ac028817
3 changed files with 330 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
#include "platform.h"
#define TICKNUM_PER_SECOND 32768
#define TICKNUM_PER_TIMER (TICKNUM_PER_SECOND / 1000)
#define TICKNUM_PER_TIMER (TICKNUM_PER_SECOND / 1000) // ~ 1ms timer
static inline int hwtimer_init(void) {
uint64_t time = get_aclint_mtime(aclint);