diff options
author | Maureen Helm <maureen.helm@nxp.com> | 2019-12-19 16:00:00 -0600 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-02-07 11:24:06 +1100 |
commit | 2d7ec8e704968fdac574de1bd0f2d48bc43bd485 (patch) | |
tree | bd1724407cd9fc7ec9ee6495d07810c2809f90dd /py/stackctrl.h | |
parent | a0440b01ea3eea03fd31a719ca479893ab19d25b (diff) | |
download | micropython-2d7ec8e704968fdac574de1bd0f2d48bc43bd485.tar.gz micropython-2d7ec8e704968fdac574de1bd0f2d48bc43bd485.zip |
zephyr: Enable fatfs.
Enables the fatfs filesystem in the zephyr port.
Example usage with an SD card on the mimxrt1050_evk board:
import zephyr, os
bdev = zephyr.DiskAccess('SDHC')
os.VfsFat.mkfs(bdev)
os.mount(bdev, '/sd')
with open('/sd/hello.txt','w') as f:
f.write('Hello world')
print(open('/sd/hello.txt').read())
Diffstat (limited to 'py/stackctrl.h')
0 files changed, 0 insertions, 0 deletions