<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/diskio.c, branch main</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-02-14T22:08:37+00:00</updated>
<entry>
<title>extmod/vfs_fat_diskio: Reusable FatFs module, move from stmhal/diskio.</title>
<updated>2016-02-14T22:08:37+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-02-14T22:08:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8cb78e0e5356134e9313e745667297d6b9dc46ed'/>
<id>urn:sha1:8cb78e0e5356134e9313e745667297d6b9dc46ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal/diskio: Add provision for default returns for ioctl INIT/SEC_SIZE.</title>
<updated>2016-02-14T18:34:30+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-02-14T18:34:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9e0478a902d311bd3f3b7c22468cf464723e0375'/>
<id>urn:sha1:9e0478a902d311bd3f3b7c22468cf464723e0375</id>
<content type='text'>
If None was returned for such requests (which likely means that user simply
didn't handle them), it means successful init and default sector size of 512
bytes respectively. This makes only BP_IOCTL_SEC_COUNT a mandatory request,
and thus re-establishes parity with old interface, where only .count() is
mandatory().
</content>
</entry>
<entry>
<title>stmhal/diskio,file: Nanbox cleanness.</title>
<updated>2016-02-14T17:15:22+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-02-14T14:22:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=baf47c84c40611943b8693303d3025537752a04c'/>
<id>urn:sha1:baf47c84c40611943b8693303d3025537752a04c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extmod/fsusermount: Move BP_IOCTL_xxx constants to fsusermount.h.</title>
<updated>2016-02-10T23:40:35+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-02-10T23:36:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e372e83b3042cb48fbe5706522d92f7aa5404ae6'/>
<id>urn:sha1:e372e83b3042cb48fbe5706522d92f7aa5404ae6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extmod/fsusermount: Support mounting of multiple block devices.</title>
<updated>2016-02-10T23:40:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-02-10T16:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b33a7705966a743c5e4c0c3c3bb83e6d97b5e84d'/>
<id>urn:sha1:b33a7705966a743c5e4c0c3c3bb83e6d97b5e84d</id>
<content type='text'>
This patch adds support to fsusermount for multiple block devices
(instead of just one).  The maximum allowed is fixed at compile time by
the size of the fs_user_mount array accessed via MP_STATE_PORT, which
in turn is set by MICROPY_FATFS_VOLUMES.

With this patch, stmhal (which is still tightly coupled to fsusermount)
is also modified to support mounting multiple devices   And the flash and
SD card are now just two block devices that are mounted at start up if
they exist (and they have special native code to make them more
efficient).
</content>
</entry>
<entry>
<title>lib/fatfs: Add support for sector sizes larger than 512 bytes.</title>
<updated>2016-02-10T08:59:58+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-02-09T14:31:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=13a4c120ce2cdeb5aa1c210d9426d31e02898486'/>
<id>urn:sha1:13a4c120ce2cdeb5aa1c210d9426d31e02898486</id>
<content type='text'>
If MICROPY_FATFS_MAX_SS is defined to power of 2 value between 1024 and
4096, support for dynamic sector size in FatFs will be enabled.  Note
that FatFs reserves static buffer of MICROPY_FATFS_MAX_SS size for each
filesystem in use, so that value should be set sparingly.

Initial patch provided by @pfalcon.
</content>
</entry>
<entry>
<title>extmod/fsusermount: Change block protocol to support ioctl method.</title>
<updated>2016-02-10T08:59:31+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-02-09T14:28:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c33ad60a676d46cb18883beedd6c383d6fae9dd8'/>
<id>urn:sha1:c33ad60a676d46cb18883beedd6c383d6fae9dd8</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>stmhal: Move stmhal-specific FatFs routines/structs to fatfs_port.c.</title>
<updated>2016-02-06T13:31:00+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-02-06T13:18:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=71206f02c3cf692a9541f5000947031306744d3f'/>
<id>urn:sha1:71206f02c3cf692a9541f5000947031306744d3f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal/diskio: Introduce MICROPY_HW_HAS_FLASH setting.</title>
<updated>2016-02-06T13:07:01+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-02-06T12:48:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=97a0846af906cde677742bff810fb7965c38fbb7'/>
<id>urn:sha1:97a0846af906cde677742bff810fb7965c38fbb7</id>
<content type='text'>
To allow to reuse stmhal/diskio for ports which don't have flash but have
other storage devices.
</content>
</entry>
<entry>
<title>extmod: Move fsusermount.c from stmhal for cross-port reuse.</title>
<updated>2015-11-25T11:19:36+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-11-24T22:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3a1bbcc2ef46bbab90ef3cde88dfcd8810e71d74'/>
<id>urn:sha1:3a1bbcc2ef46bbab90ef3cde88dfcd8810e71d74</id>
<content type='text'>
</content>
</entry>
</feed>
