From 3da6fae25fc44ec830fac4a92787b585ff55435e Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 15 Mar 2021 13:38:19 -0400 Subject: [PATCH] zephyr: use k_ms_to_ticks_ceil32 instead of z_ms_to_ticks z_ms_to_ticks is being deprecated and is private, so use k_ms_to_ticks_ceil32 instead. Signed-off-by: Anas Nashif --- simplelink/kernel/zephyr/dpl/ClockP_zephyr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplelink/kernel/zephyr/dpl/ClockP_zephyr.c b/simplelink/kernel/zephyr/dpl/ClockP_zephyr.c index 7794480..33bc4be 100644 --- a/simplelink/kernel/zephyr/dpl/ClockP_zephyr.c +++ b/simplelink/kernel/zephyr/dpl/ClockP_zephyr.c @@ -80,7 +80,7 @@ uint32_t ClockP_getSystemTickPeriod() uint32_t ClockP_getSystemTicks() { - return (uint32_t)z_ms_to_ticks(k_uptime_get_32()); + return (uint32_t)k_ms_to_ticks_ceil32(k_uptime_get_32()); } /*