esp8266: Change to use new generic VFS sub-system.

The VFS sub-system supports mounting of an arbitrary number of devices
(limited only by available RAM).  The internal flash is now mounted at
"/flash".
This commit is contained in:
Damien George
2017-01-27 15:16:08 +11:00
parent f1e04148a1
commit f9ecd484bb
7 changed files with 39 additions and 108 deletions

View File

@@ -5,7 +5,9 @@ from flashbdev import bdev
try:
if bdev:
vfs = uos.VfsFat(bdev, "")
vfs = uos.VfsFat(bdev)
uos.mount(vfs, '/flash')
uos.chdir('/flash')
except OSError:
import inisetup
vfs = inisetup.setup()