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
f0fbab7c
Commit
f0fbab7c
authored
Nov 25, 2015
by
Paul Sokolovsky
Browse files
extmod/fsusermount: Make configurable with MICROPY_FSUSERMOUNT.
parent
3a1bbcc2
Changes
3
Hide whitespace changes
Inline
Side-by-side
extmod/fsusermount.c
View file @
f0fbab7c
...
...
@@ -24,6 +24,9 @@
* THE SOFTWARE.
*/
#include
"py/mpconfig.h"
#if MICROPY_FSUSERMOUNT
#include
"py/nlr.h"
#include
"py/runtime.h"
#include
"lib/fatfs/ff.h"
...
...
@@ -110,3 +113,5 @@ STATIC mp_obj_t pyb_mount(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *
return
mp_const_none
;
}
MP_DEFINE_CONST_FUN_OBJ_KW
(
pyb_mount_obj
,
2
,
pyb_mount
);
#endif // MICROPY_FSUSERMOUNT
py/mpconfig.h
View file @
f0fbab7c
...
...
@@ -469,6 +469,11 @@ typedef double mp_float_t;
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (1)
#endif
// Support for user-space VFS mount (selected ports)
#ifndef MICROPY_FSUSERMOUNT
#define MICROPY_FSUSERMOUNT (0)
#endif
/*****************************************************************************/
/* Fine control over Python builtins, classes, modules, etc */
...
...
stmhal/mpconfigport.h
View file @
f0fbab7c
...
...
@@ -54,6 +54,7 @@
#define MICROPY_FATFS_RPATH (2)
#define MICROPY_FATFS_VOLUMES (3)
#define MICROPY_FATFS_MULTI_PARTITION (1)
#define MICROPY_FSUSERMOUNT (1)
#define MICROPY_STREAMS_NON_BLOCK (1)
#define MICROPY_MODULE_WEAK_LINKS (1)
...
...
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