summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/zephyr/mphalport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/zephyr/mphalport.h b/ports/zephyr/mphalport.h
index 4388f607d..594f6a1f6 100644
--- a/ports/zephyr/mphalport.h
+++ b/ports/zephyr/mphalport.h
@@ -2,7 +2,7 @@
#include "lib/utils/interrupt_char.h"
static inline mp_uint_t mp_hal_ticks_us(void) {
- return SYS_CLOCK_HW_CYCLES_TO_NS(k_cycle_get_32()) / 1000;
+ return k_cyc_to_ns_floor64(k_cycle_get_32()) / 1000;
}
static inline mp_uint_t mp_hal_ticks_ms(void) {