diff options
-rw-r--r-- | ports/zephyr/mpconfigport.h | 4 | ||||
-rw-r--r-- | ports/zephyr/mphalport.h | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/ports/zephyr/mpconfigport.h b/ports/zephyr/mpconfigport.h index 024731025..e963e0d85 100644 --- a/ports/zephyr/mpconfigport.h +++ b/ports/zephyr/mpconfigport.h @@ -43,17 +43,13 @@ #define MICROPY_HELPER_REPL (1) #define MICROPY_REPL_AUTO_INDENT (1) #define MICROPY_KBD_EXCEPTION (1) -#define MICROPY_CPYTHON_COMPAT (0) #define MICROPY_PY_ASYNC_AWAIT (0) -#define MICROPY_PY_ATTRTUPLE (0) #define MICROPY_PY_BUILTINS_BYTES_HEX (1) -#define MICROPY_PY_BUILTINS_ENUMERATE (0) #define MICROPY_PY_BUILTINS_FILTER (0) #define MICROPY_PY_BUILTINS_MIN_MAX (0) #define MICROPY_PY_BUILTINS_PROPERTY (0) #define MICROPY_PY_BUILTINS_RANGE_ATTRS (0) #define MICROPY_PY_BUILTINS_REVERSED (0) -#define MICROPY_PY_BUILTINS_SET (0) #define MICROPY_PY_BUILTINS_STR_COUNT (0) #define MICROPY_PY_BUILTINS_MEMORYVIEW (1) #define MICROPY_PY_BUILTINS_HELP (1) diff --git a/ports/zephyr/mphalport.h b/ports/zephyr/mphalport.h index 0d086ac29..e1f402cb3 100644 --- a/ports/zephyr/mphalport.h +++ b/ports/zephyr/mphalport.h @@ -31,8 +31,7 @@ static inline void mp_hal_delay_ms(mp_uint_t delay) { } static inline uint64_t mp_hal_time_ns(void) { - // Not currently implemented. - return 0; + return k_ticks_to_ns_near64(k_uptime_ticks()); } #define mp_hal_delay_us_fast(us) (mp_hal_delay_us(us)) |