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

This commit is contained in:
Paul Sokolovsky 2016-02-15 00:02:03 +02:00
parent 9fdac9144d
commit 72085a669b
3 changed files with 5 additions and 5 deletions

View File

@ -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
////////////////////////////////////////////////////////////

View File

@ -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; \

View File

@ -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()