diff options
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r-- | unix/mpconfigport.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index a0e7bf4674..9f65bc9295 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -179,6 +179,11 @@ void mp_unix_mark_exec(void); #define MP_PLAT_PRINT_STRN(str, len) fwrite(str, 1, len, stdout) +#ifdef __linux__ +// Can access physical memory using /dev/mem +#define MICROPY_PLAT_DEV_MEM (1) +#endif + extern const struct _mp_obj_fun_builtin_t mp_builtin_input_obj; extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj; #define MICROPY_PORT_BUILTINS \ |