From 5b85a86ce3aaabac49083e2699c90d011a1e4de3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 10 Feb 2016 00:50:07 +0200 Subject: extmod/fsusermount: Introduce separate mkfs() function. Per the previously discussed plan. mount() still stays backward-compatible, and new mkfs() is rought and takes more args than needed. But is a step in a forward direction. --- stmhal/modpyb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stmhal/modpyb.c') diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c index 0f18b04ed..60f220be2 100644 --- a/stmhal/modpyb.c +++ b/stmhal/modpyb.c @@ -61,6 +61,7 @@ #include "usb.h" #include "portmodules.h" #include "modmachine.h" +#include "extmod/fsusermount.h" /// \function millis() /// Returns the number of milliseconds since the board was last reset. @@ -164,7 +165,7 @@ STATIC const mp_map_elem_t pyb_module_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_delay), (mp_obj_t)&time_sleep_ms_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_udelay), (mp_obj_t)&time_sleep_us_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_sync), (mp_obj_t)&mod_os_sync_obj }, - { MP_OBJ_NEW_QSTR(MP_QSTR_mount), (mp_obj_t)&pyb_mount_obj }, + { MP_OBJ_NEW_QSTR(MP_QSTR_mount), (mp_obj_t)&fsuser_mount_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_Timer), (mp_obj_t)&pyb_timer_type }, -- cgit v1.2.3