|
|
@ -219,52 +219,6 @@ extern const struct _mp_print_t mp_stderr_print; |
|
|
|
#define mp_type_fileio mp_type_vfs_posix_fileio |
|
|
|
#define mp_type_textio mp_type_vfs_posix_textio |
|
|
|
|
|
|
|
extern const struct _mp_obj_module_t mp_module_uselect; |
|
|
|
extern const struct _mp_obj_module_t mp_module_time; |
|
|
|
extern const struct _mp_obj_module_t mp_module_termios; |
|
|
|
extern const struct _mp_obj_module_t mp_module_socket; |
|
|
|
extern const struct _mp_obj_module_t mp_module_ffi; |
|
|
|
extern const struct _mp_obj_module_t mp_module_jni; |
|
|
|
|
|
|
|
#if MICROPY_PY_FFI |
|
|
|
#define MICROPY_PY_FFI_DEF { MP_ROM_QSTR(MP_QSTR_ffi), MP_ROM_PTR(&mp_module_ffi) }, |
|
|
|
#else |
|
|
|
#define MICROPY_PY_FFI_DEF |
|
|
|
#endif |
|
|
|
#if MICROPY_PY_JNI |
|
|
|
#define MICROPY_PY_JNI_DEF { MP_ROM_QSTR(MP_QSTR_jni), MP_ROM_PTR(&mp_module_jni) }, |
|
|
|
#else |
|
|
|
#define MICROPY_PY_JNI_DEF |
|
|
|
#endif |
|
|
|
#if MICROPY_PY_UTIME |
|
|
|
#define MICROPY_PY_UTIME_DEF { MP_ROM_QSTR(MP_QSTR_utime), MP_ROM_PTR(&mp_module_time) }, |
|
|
|
#else |
|
|
|
#define MICROPY_PY_UTIME_DEF |
|
|
|
#endif |
|
|
|
#if MICROPY_PY_TERMIOS |
|
|
|
#define MICROPY_PY_TERMIOS_DEF { MP_ROM_QSTR(MP_QSTR_termios), MP_ROM_PTR(&mp_module_termios) }, |
|
|
|
#else |
|
|
|
#define MICROPY_PY_TERMIOS_DEF |
|
|
|
#endif |
|
|
|
#if MICROPY_PY_SOCKET |
|
|
|
#define MICROPY_PY_SOCKET_DEF { MP_ROM_QSTR(MP_QSTR_usocket), MP_ROM_PTR(&mp_module_socket) }, |
|
|
|
#else |
|
|
|
#define MICROPY_PY_SOCKET_DEF |
|
|
|
#endif |
|
|
|
#if MICROPY_PY_USELECT_POSIX |
|
|
|
#define MICROPY_PY_USELECT_DEF { MP_ROM_QSTR(MP_QSTR_uselect), MP_ROM_PTR(&mp_module_uselect) }, |
|
|
|
#else |
|
|
|
#define MICROPY_PY_USELECT_DEF |
|
|
|
#endif |
|
|
|
|
|
|
|
#define MICROPY_PORT_BUILTIN_MODULES \ |
|
|
|
MICROPY_PY_FFI_DEF \ |
|
|
|
MICROPY_PY_JNI_DEF \ |
|
|
|
MICROPY_PY_UTIME_DEF \ |
|
|
|
MICROPY_PY_SOCKET_DEF \ |
|
|
|
MICROPY_PY_USELECT_DEF \ |
|
|
|
MICROPY_PY_TERMIOS_DEF \ |
|
|
|
|
|
|
|
// type definitions for the specific machine
|
|
|
|
|
|
|
|
// For size_t and ssize_t
|
|
|
|