|
|
@ -51,6 +51,7 @@ |
|
|
|
#define MICROPY_DEBUG_PRINTER (&mp_stderr_print) |
|
|
|
#define MICROPY_DEBUG_PRINTERS (1) |
|
|
|
#define MICROPY_READER_POSIX (1) |
|
|
|
#define MICROPY_READER_VFS (1) |
|
|
|
#define MICROPY_USE_READLINE_HISTORY (1) |
|
|
|
#define MICROPY_HELPER_REPL (1) |
|
|
|
#define MICROPY_REPL_EMACS_KEYS (1) |
|
|
@ -72,7 +73,8 @@ |
|
|
|
#ifndef MICROPY_ENABLE_SCHEDULER |
|
|
|
#define MICROPY_ENABLE_SCHEDULER (1) |
|
|
|
#endif |
|
|
|
#define MICROPY_VFS_POSIX_FILE (1) |
|
|
|
#define MICROPY_VFS (1) |
|
|
|
#define MICROPY_VFS_POSIX (1) |
|
|
|
#define MICROPY_PY_FUNCTION_ATTRS (1) |
|
|
|
#define MICROPY_PY_DESCRIPTORS (1) |
|
|
|
#define MICROPY_PY_DELATTR_SETATTR (1) |
|
|
@ -124,6 +126,14 @@ |
|
|
|
#define MICROPY_STACKLESS_STRICT (0) |
|
|
|
#endif |
|
|
|
|
|
|
|
#define MICROPY_PY_UOS (1) |
|
|
|
#define MICROPY_PY_UOS_INCLUDEFILE "ports/unix/moduos.c" |
|
|
|
#define MICROPY_PY_UOS_ERRNO (1) |
|
|
|
#define MICROPY_PY_UOS_GETENV_PUTENV_UNSETENV (1) |
|
|
|
#define MICROPY_PY_UOS_SEP (1) |
|
|
|
#define MICROPY_PY_UOS_STATVFS (0) |
|
|
|
#define MICROPY_PY_UOS_SYSTEM (1) |
|
|
|
#define MICROPY_PY_UOS_URANDOM (1) |
|
|
|
#define MICROPY_PY_UTIME (1) |
|
|
|
#define MICROPY_PY_UTIME_MP_HAL (1) |
|
|
|
#define MICROPY_PY_UERRNO (1) |
|
|
@ -161,6 +171,8 @@ extern const struct _mp_print_t mp_stderr_print; |
|
|
|
#define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (256) |
|
|
|
#define MICROPY_KBD_EXCEPTION (1) |
|
|
|
|
|
|
|
#define mp_import_stat mp_vfs_import_stat |
|
|
|
#define mp_builtin_open_obj mp_vfs_open_obj |
|
|
|
#define mp_type_fileio mp_type_vfs_posix_fileio |
|
|
|
#define mp_type_textio mp_type_vfs_posix_textio |
|
|
|
|
|
|
@ -203,11 +215,9 @@ typedef long mp_off_t; |
|
|
|
#define MICROPY_PORT_BUILTINS \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) }, |
|
|
|
|
|
|
|
extern const struct _mp_obj_module_t mp_module_os; |
|
|
|
extern const struct _mp_obj_module_t mp_module_time; |
|
|
|
#define MICROPY_PORT_BUILTIN_MODULES \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_utime), MP_ROM_PTR(&mp_module_time) }, \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_os) }, \ |
|
|
|
|
|
|
|
#if MICROPY_USE_READLINE == 1 |
|
|
|
#define MICROPY_PORT_ROOT_POINTERS \ |
|
|
|