diff options
Diffstat (limited to 'ports/stm32/moduos.c')
| -rw-r--r-- | ports/stm32/moduos.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ports/stm32/moduos.c b/ports/stm32/moduos.c index 85d0edeca..1f41e68bd 100644 --- a/ports/stm32/moduos.c +++ b/ports/stm32/moduos.c @@ -29,24 +29,6 @@ #include "usb.h" #include "uart.h" -#if MICROPY_VFS_FAT -#include "lib/oofatfs/ff.h" -#include "lib/oofatfs/diskio.h" -#endif - -// sync() -// Sync all filesystems. -STATIC mp_obj_t mp_uos_sync(void) { - #if MICROPY_VFS_FAT - for (mp_vfs_mount_t *vfs = MP_STATE_VM(vfs_mount_table); vfs != NULL; vfs = vfs->next) { - // this assumes that vfs->obj is fs_user_mount_t with block device functions - disk_ioctl(MP_OBJ_TO_PTR(vfs->obj), CTRL_SYNC, NULL); - } - #endif - return mp_const_none; -} -MP_DEFINE_CONST_FUN_OBJ_0(mp_uos_sync_obj, mp_uos_sync); - #if MICROPY_PY_UOS_URANDOM // urandom(n) // Return a bytes object with n random bytes, generated by the hardware |
