diff options
Diffstat (limited to 'zephyr/mpconfigport_minimal.h')
-rw-r--r-- | zephyr/mpconfigport_minimal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zephyr/mpconfigport_minimal.h b/zephyr/mpconfigport_minimal.h index 4ecc03afb..772335c0a 100644 --- a/zephyr/mpconfigport_minimal.h +++ b/zephyr/mpconfigport_minimal.h @@ -27,6 +27,8 @@ // Include Zephyr's autoconf.h, which should be made first by Zephyr makefiles #include "autoconf.h" +// Included here to get basic Zephyr environment (macros, etc.) +#include <zephyr.h> // Usually passed from Makefile #ifndef MICROPY_HEAP_SIZE @@ -37,6 +39,7 @@ #define MICROPY_ENABLE_GC (1) #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) @@ -82,8 +85,6 @@ typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size typedef long mp_off_t; -#define BYTES_PER_WORD (sizeof(mp_int_t)) - #define MP_STATE_PORT MP_STATE_VM #define MICROPY_PORT_ROOT_POINTERS \ |