Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
72085a66
Commit
72085a66
authored
Feb 15, 2016
by
Paul Sokolovsky
Browse files
py/mpstate.h: fs_user_mount is now standard, reusable uPy functionality.
parent
9fdac914
Changes
3
Hide whitespace changes
Inline
Side-by-side
py/mpstate.h
View file @
72085a66
...
...
@@ -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
////////////////////////////////////////////////////////////
...
...
stmhal/mpconfigport.h
View file @
72085a66
...
...
@@ -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; \
...
...
unix/mpconfigport.h
View file @
72085a66
...
...
@@ -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()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment