summaryrefslogtreecommitdiff
path: root/test/tx/cmake/riscv/bsp/hwtimer.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/tx/cmake/riscv/bsp/hwtimer.h')
-rw-r--r--test/tx/cmake/riscv/bsp/hwtimer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tx/cmake/riscv/bsp/hwtimer.h b/test/tx/cmake/riscv/bsp/hwtimer.h
index e6b9efa4..bde0bba5 100644
--- a/test/tx/cmake/riscv/bsp/hwtimer.h
+++ b/test/tx/cmake/riscv/bsp/hwtimer.h
@@ -13,8 +13,8 @@
#include <stdint.h>
-#define TICKNUM_PER_SECOND 10000000
-#define TICKNUM_PER_TIMER (TICKNUM_PER_SECOND / 10)
+#define TICKNUM_PER_SECOND 10000000UL
+#define TICKNUM_PER_TIMER (TICKNUM_PER_SECOND / TX_TIMER_TICKS_PER_SECOND)
int hwtimer_init(void);
int hwtimer_handler(void);