<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/drivers, branch 4.0.0-alpha.2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.0.0-alpha.2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.0.0-alpha.2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2018-07-12T18:13:51+00:00</updated>
<entry>
<title>continued WIP: almost compiling</title>
<updated>2018-07-12T18:13:51+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2018-07-12T18:13:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0d27f4d9a66dcb47b545e715d1833094b0c7b484'/>
<id>urn:sha1:0d27f4d9a66dcb47b545e715d1833094b0c7b484</id>
<content type='text'>
</content>
</entry>
<entry>
<title>WIP: after merge; before testing</title>
<updated>2018-07-11T20:45:30+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2018-07-11T20:45:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7c219600a246d8956d0b23ea3f5d125a820e6b6a'/>
<id>urn:sha1:7c219600a246d8956d0b23ea3f5d125a820e6b6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>drivers/sdcard: Fix bug in computing number of sectors on SD Card.</title>
<updated>2018-06-15T08:02:40+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-06-15T08:02:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1747d15c3afa12672d156664eabb29e3ba3b17d7'/>
<id>urn:sha1:1747d15c3afa12672d156664eabb29e3ba3b17d7</id>
<content type='text'>
This was a typo from the very first commit of this file.
</content>
</entry>
<entry>
<title>drivers/sdcard: Change driver to use new block-device protocol.</title>
<updated>2018-06-15T08:01:36+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-06-15T08:01:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8b8c083625b15ae9e3560b96ee98408c4810544d'/>
<id>urn:sha1:8b8c083625b15ae9e3560b96ee98408c4810544d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>drivers/memory/spiflash: Add functions for direct erase/read/write.</title>
<updated>2018-06-14T06:52:56+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-06-07T05:39:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b78ca32476ba666412a9ec44a5453094fbf0dbd7'/>
<id>urn:sha1:b78ca32476ba666412a9ec44a5453094fbf0dbd7</id>
<content type='text'>
These new API functions do not use the cache.
</content>
</entry>
<entry>
<title>drivers/memory/spiflash: Rename functions to indicate they use cache.</title>
<updated>2018-06-14T06:52:56+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-06-07T05:36:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cc5a94044a670f5acccefa8e04a38e81d882e087'/>
<id>urn:sha1:cc5a94044a670f5acccefa8e04a38e81d882e087</id>
<content type='text'>
This patch renames the existing SPI flash API functions to reflect the fact
that the go through the cache:

    mp_spiflash_flush -&gt; mp_spiflash_cache_flush
    mp_spiflash_read  -&gt; mp_spiflash_cached_read
    mp_spiflash_write -&gt; mp_spiflash_cached_write
</content>
</entry>
<entry>
<title>drivers/memory/spiflash: Move cache buffer to user-provided config.</title>
<updated>2018-06-14T06:52:56+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-06-07T04:09:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=86fe73beb99686ea15787f0603ad6f10a642054c'/>
<id>urn:sha1:86fe73beb99686ea15787f0603ad6f10a642054c</id>
<content type='text'>
This patch removes the global cache variables from the SPI flash driver and
now requires the user to provide the cache memory themselves, via the SPI
flash configuration struct.  This allows to either have a shared cache for
multiple SPI flash devices (by sharing a mp_spiflash_cache_t struct), or
have a single cache per device (or a mix of these options).

To configure the cache use:

    mp_spiflash_cache_t spi_bdev_cache;

    const mp_spiflash_config_t spiflash_config =
        // any bus options
        .cache = &amp;spi_bdev_cache,
    };
</content>
</entry>
<entry>
<title>drivers/wiznet5k: Fix bug with MACRAW socket calculating packet size.</title>
<updated>2018-06-01T03:44:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-06-01T03:44:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5a5bc4a61f660829b8f57c297ff90ec43f86b173'/>
<id>urn:sha1:5a5bc4a61f660829b8f57c297ff90ec43f86b173</id>
<content type='text'>
</content>
</entry>
<entry>
<title>drivers/memory/spiflash: Fix bugs in and clean up read/write functions.</title>
<updated>2018-03-13T03:13:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-03-13T03:13:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bdc875e602f687bf0fb28c3a18565ffec4157f59'/>
<id>urn:sha1:bdc875e602f687bf0fb28c3a18565ffec4157f59</id>
<content type='text'>
mp_spiflash_read had a bug in it where "dest" and "addr" were incremented
twice for a certain special case.  This was fixed, which then allowed the
function to be simplified to reduce code size.

mp_spiflash_write had a bug in it where "src" was not incremented correctly
for the case where the data to be written included the caching buffer as
well as some bytes after this buffer.  This was fixed and the resulting
code simplified.
</content>
</entry>
<entry>
<title>drivers/memory/spiflash: Fix setting of QE bit in flash register.</title>
<updated>2018-03-11T00:25:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-03-11T00:25:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cc34b087f0fe121afb03dcfe99180737ab925372'/>
<id>urn:sha1:cc34b087f0fe121afb03dcfe99180737ab925372</id>
<content type='text'>
</content>
</entry>
</feed>
