Searched refs:MICROPY_PY_UTIME_TICKS_PERIOD (Results 1 – 4 of 4) sorted by relevance
68 return MP_OBJ_NEW_SMALL_INT(mp_hal_ticks_ms() & (MICROPY_PY_UTIME_TICKS_PERIOD - 1)); in time_ticks_ms()73 return MP_OBJ_NEW_SMALL_INT(mp_hal_ticks_us() & (MICROPY_PY_UTIME_TICKS_PERIOD - 1)); in time_ticks_us()78 return MP_OBJ_NEW_SMALL_INT(mp_hal_ticks_cpu() & (MICROPY_PY_UTIME_TICKS_PERIOD - 1)); in time_ticks_cpu()88 …mp_int_t diff = ((end - start + MICROPY_PY_UTIME_TICKS_PERIOD / 2) & (MICROPY_PY_UTIME_TICKS_PERIO… in time_ticks_diff()89 - MICROPY_PY_UTIME_TICKS_PERIOD / 2; in time_ticks_diff()98 return MP_OBJ_NEW_SMALL_INT((ticks + delta) & (MICROPY_PY_UTIME_TICKS_PERIOD - 1)); in time_ticks_add()
67 return MP_OBJ_NEW_SMALL_INT(mp_hal_ticks_ms() & (MICROPY_PY_UTIME_TICKS_PERIOD - 1)); in ticks()73 …mp_int_t diff = ((t1 - t0 + MICROPY_PY_UTIME_TICKS_PERIOD / 2) & (MICROPY_PY_UTIME_TICKS_PERIOD - … in ticks_diff()74 - MICROPY_PY_UTIME_TICKS_PERIOD / 2; in ticks_diff()
36 #define MODULO MICROPY_PY_UTIME_TICKS_PERIOD
1344 #ifndef MICROPY_PY_UTIME_TICKS_PERIOD1345 #define MICROPY_PY_UTIME_TICKS_PERIOD (MP_SMALL_INT_POSITIVE_MASK + 1) macro
Completed in 9 milliseconds