zephyr/mphalport.h: Replace deprecated macro in mp_hal_ticks_us().
Gives deprecation warning with Zephyr 2.2-pre.
#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_us_floor32(k_cycle_get_32());
}
static inline mp_uint_t mp_hal_ticks_ms(void) {
