diff options
author | Damien George <damien.p.george@gmail.com> | 2016-02-09 14:28:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-02-10 08:59:31 +0000 |
commit | c33ad60a676d46cb18883beedd6c383d6fae9dd8 (patch) | |
tree | 2ac56735b689abc47fb435268ce1e9fdaa7d459c /py | |
parent | 3846fd56c150646099d530196fd6ab9a54536a24 (diff) | |
download | micropython-c33ad60a676d46cb18883beedd6c383d6fae9dd8.tar.gz micropython-c33ad60a676d46cb18883beedd6c383d6fae9dd8.zip |
extmod/fsusermount: Change block protocol to support ioctl method.
The new block protocol is:
- readblocks(self, n, buf)
- writeblocks(self, n, buf)
- ioctl(self, cmd, arg)
The new ioctl method handles the old sync and count methods, as well as
a new "get sector size" method.
The old protocol is still supported, and used if the device doesn't have
the ioctl method.
Diffstat (limited to 'py')
-rw-r--r-- | py/qstrdefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index bf774e036b..0a2cc2c8e6 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -675,6 +675,7 @@ Q(readonly) Q(mkfs) Q(readblocks) Q(writeblocks) +Q(ioctl) Q(sync) Q(count) #endif |