8000 zephyr: Enable some core features to get more thread tests passing. · cuatrobits/micropython@7009c75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7009c75

Browse files
danicamporadpgeorge
authored andcommitted
zephyr: Enable some core features to get more thread tests passing.
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>
1 parent d68d8fc commit 7009c75

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

ports/zephyr/mpconfigport.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,13 @@
4343
#define MICROPY_HELPER_REPL (1)
4444
#define MICROPY_REPL_AUTO_INDENT (1)
4545
#define MICROPY_KBD_EXCEPTION (1)
46-
#define MICROPY_CPYTHON_COMPAT (0)
4746
#define MICROPY_PY_ASYNC_AWAIT (0)
48-
#define MICROPY_PY_ATTRTUPLE (0)
4947
#define MICROPY_PY_BUILTINS_BYTES_HEX (1)
50-
#define MICROPY_PY_BUILTINS_ENUMERATE (0)
5148
#define MICROPY_PY_BUILTINS_FILTER (0)
5249
#define MICROPY_PY_BUILTINS_MIN_MAX (0)
5350
#define MICROPY_PY_BUILTINS_PROPERTY (0)
5451
#define MICROPY_PY_BUILTINS_RANGE_ATTRS (0)
5552
#define MICROPY_PY_BUILTINS_REVERSED (0)
56-
#define MICROPY_PY_BUILTINS_SET (0)
5753
#define MICROPY_PY_BUILTINS_STR_COUNT (0)
5854
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
5955
#define MICROPY_PY_BUILTINS_HELP (1)

ports/zephyr/mphalport.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ static inline void mp_hal_delay_ms(mp_uint_t delay) {
3131
}
3232

3333
static inline uint64_t mp_hal_time_ns(void) {
34-
// Not currently implemented.
35-
return 0;
34+
return k_ticks_to_ns_near64(k_uptime_ticks());
3635
}
3736

3837
#define mp_hal_delay_us_fast(us) (mp_hal_delay_us(us))

0 commit comments

Comments
 (0)
0