py/mpstate.h: fs_user_mount is now standard, reusable uPy functionality.
This commit is contained in:
parent
9fdac9144d
commit
72085a669b
@ -136,6 +136,11 @@ typedef struct _mp_state_vm_t {
|
|||||||
mp_obj_t lwip_slip_stream;
|
mp_obj_t lwip_slip_stream;
|
||||||
#endif
|
#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
|
// 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) */ \
|
/* pointers to all CAN objects (if they have been created) */ \
|
||||||
struct _pyb_can_obj_t *pyb_can_obj_all[2]; \
|
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 */ \
|
/* list of registered NICs */ \
|
||||||
mp_obj_list_t mod_network_nic_list; \
|
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 \
|
#define MICROPY_PORT_ROOT_POINTERS \
|
||||||
const char *readline_hist[50]; \
|
const char *readline_hist[50]; \
|
||||||
mp_obj_t keyboard_interrupt_obj; \
|
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; \
|
void *mmap_region_head; \
|
||||||
|
|
||||||
// We need to provide a declaration/definition of alloca()
|
// We need to provide a declaration/definition of alloca()
|
||||||
|
Loading…
Reference in New Issue
Block a user