Skip to content

Commit 72085a6

Browse files
committed
py/mpstate.h: fs_user_mount is now standard, reusable uPy functionality.
1 parent 9fdac91 commit 72085a6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

py/mpstate.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ typedef struct _mp_state_vm_t {
136136
mp_obj_t lwip_slip_stream;
137137
#endif
138138

139+
#if MICROPY_FSUSERMOUNT
140+
// for user-mountable block device (max fixed at compile time)
141+
struct _fs_user_mount_t *fs_user_mount[MICROPY_FATFS_VOLUMES];
142+
#endif
143+
139144
//
140145
// END ROOT POINTER SECTION
141146
////////////////////////////////////////////////////////////

stmhal/mpconfigport.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ extern const struct _mp_obj_module_t mp_module_network;
183183
/* pointers to all CAN objects (if they have been created) */ \
184184
struct _pyb_can_obj_t *pyb_can_obj_all[2]; \
185185
\
186-
/* for user-mountable block device (max fixed at compile time) */ \
187-
struct _fs_user_mount_t *fs_user_mount[MICROPY_FATFS_VOLUMES]; \
188-
\
189186
/* list of registered NICs */ \
190187
mp_obj_list_t mod_network_nic_list; \
191188

unix/mpconfigport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj;
264264
#define MICROPY_PORT_ROOT_POINTERS \
265265
const char *readline_hist[50]; \
266266
mp_obj_t keyboard_interrupt_obj; \
267-
/* for user-mountable block device (max fixed at compile time) */ \
268-
struct _fs_user_mount_t *fs_user_mount[MICROPY_FATFS_VOLUMES]; \
269267
void *mmap_region_head; \
270268

271269
// We need to provide a declaration/definition of alloca()

0 commit comments

Comments
 (0)