Commit 72085a66 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/mpstate.h: fs_user_mount is now standard, reusable uPy functionality.

parent 9fdac914
......@@ -136,6 +136,11 @@ typedef struct _mp_state_vm_t {
mp_obj_t lwip_slip_stream;
#endif
#if MICROPY_FSUSERMOUNT
// for user-mountable block device (max fixed at compile time)
struct _fs_user_mount_t *fs_user_mount[MICROPY_FATFS_VOLUMES];
#endif
//
// END ROOT POINTER SECTION
////////////////////////////////////////////////////////////
......
......@@ -183,9 +183,6 @@ extern const struct _mp_obj_module_t mp_module_network;
/* pointers to all CAN objects (if they have been created) */ \
struct _pyb_can_obj_t *pyb_can_obj_all[2]; \
\
/* for user-mountable block device (max fixed at compile time) */ \
struct _fs_user_mount_t *fs_user_mount[MICROPY_FATFS_VOLUMES]; \
\
/* list of registered NICs */ \
mp_obj_list_t mod_network_nic_list; \
......
......@@ -264,8 +264,6 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
#define MICROPY_PORT_ROOT_POINTERS \
const char *readline_hist[50]; \
mp_obj_t keyboard_interrupt_obj; \
/* for user-mountable block device (max fixed at compile time) */ \
struct _fs_user_mount_t *fs_user_mount[MICROPY_FATFS_VOLUMES]; \
void *mmap_region_head; \
// We need to provide a declaration/definition of alloca()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment