|
|
@ -82,6 +82,7 @@
|
|
|
|
#define MICROPY_STREAMS_NON_BLOCK (1)
|
|
|
|
#define MICROPY_STREAMS_NON_BLOCK (1)
|
|
|
|
#define MICROPY_MODULE_WEAK_LINKS (1)
|
|
|
|
#define MICROPY_MODULE_WEAK_LINKS (1)
|
|
|
|
#define MICROPY_CAN_OVERRIDE_BUILTINS (0)
|
|
|
|
#define MICROPY_CAN_OVERRIDE_BUILTINS (0)
|
|
|
|
|
|
|
|
#define MICROPY_VFS_POSIX_FILE (1)
|
|
|
|
#define MICROPY_USE_INTERNAL_ERRNO (0)
|
|
|
|
#define MICROPY_USE_INTERNAL_ERRNO (0)
|
|
|
|
#define MICROPY_ENABLE_SCHEDULER (0)
|
|
|
|
#define MICROPY_ENABLE_SCHEDULER (0)
|
|
|
|
#define MICROPY_SCHEDULER_DEPTH (0)
|
|
|
|
#define MICROPY_SCHEDULER_DEPTH (0)
|
|
|
@ -98,6 +99,7 @@
|
|
|
|
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
|
|
|
|
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
|
|
|
|
#define MICROPY_PY_BUILTINS_FROZENSET (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_FROZENSET (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
|
|
|
|
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
|
|
|
|
|
|
|
|
#define MICROPY_PY_BUILTINS_SLICE_INDICES (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_ROUND_INT (0)
|
|
|
|
#define MICROPY_PY_BUILTINS_ROUND_INT (0)
|
|
|
|
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0)
|
|
|
|
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0)
|
|
|
|
#define MICROPY_PY_ALL_SPECIAL_METHODS (0)
|
|
|
|
#define MICROPY_PY_ALL_SPECIAL_METHODS (0)
|
|
|
@ -163,6 +165,10 @@
|
|
|
|
// check stdout a chance to pass, etc.
|
|
|
|
// check stdout a chance to pass, etc.
|
|
|
|
#define MICROPY_DEBUG_PRINTER (&mp_stderr_print)
|
|
|
|
#define MICROPY_DEBUG_PRINTER (&mp_stderr_print)
|
|
|
|
#define MICROPY_ASYNC_KBD_INTR (1)
|
|
|
|
#define MICROPY_ASYNC_KBD_INTR (1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define mp_type_fileio mp_type_vfs_posix_fileio
|
|
|
|
|
|
|
|
#define mp_type_textio mp_type_vfs_posix_textio
|
|
|
|
|
|
|
|
|
|
|
|
// Define to MICROPY_ERROR_REPORTING_DETAILED to get function, etc.
|
|
|
|
// Define to MICROPY_ERROR_REPORTING_DETAILED to get function, etc.
|
|
|
|
// names in exception messages (may require more RAM).
|
|
|
|
// names in exception messages (may require more RAM).
|
|
|
|
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
|
|
|
|
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
|
|
|
@ -240,12 +246,6 @@ void mp_unix_mark_exec(void);
|
|
|
|
#define MICROPY_FORCE_PLAT_ALLOC_EXEC (1)
|
|
|
|
#define MICROPY_FORCE_PLAT_ALLOC_EXEC (1)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if MICROPY_PY_OS_DUPTERM
|
|
|
|
|
|
|
|
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define MP_PLAT_PRINT_STRN(str, len) do { ssize_t ret = write(1, str, len); (void)ret; } while (0)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __linux__
|
|
|
|
#ifdef __linux__
|
|
|
|
// Can access physical memory using /dev/mem
|
|
|
|
// Can access physical memory using /dev/mem
|
|
|
|
#define MICROPY_PLAT_DEV_MEM (1)
|
|
|
|
#define MICROPY_PLAT_DEV_MEM (1)
|
|
|
|