Skip to content

Commit

Permalink
zephyr: Enable some core features to get more thread tests passing.
Browse files Browse the repository at this point in the history
All these features are enabled at the
`MICROPY_CONFIG_ROM_LEVEL_CORE_FEATURES` level, and are required to get
more of the thread tests passing.

Signed-off-by: danicampora <danicampora@gmail.com>
  • Loading branch information
danicampora authored and dpgeorge committed Sep 6, 2024
1 parent d68d8fc commit 7009c75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions ports/zephyr/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions ports/zephyr/mphalport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 7009c75

Please sign in to comment.