<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/usbdev, branch v1.3.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-04-16T22:17:29+00:00</updated>
<entry>
<title>stmhal: Replace magic number 3 with CDC_IN_EP define.</title>
<updated>2014-04-16T22:17:29+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-16T22:17:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=28817725fc42df64b409853e002eb1c9d0476cd5'/>
<id>urn:sha1:28817725fc42df64b409853e002eb1c9d0476cd5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Improve flash storage cache management.</title>
<updated>2014-04-16T22:08:36+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-16T22:08:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6d983539bcff2a540dd136a7e84e1db2b334528f'/>
<id>urn:sha1:6d983539bcff2a540dd136a7e84e1db2b334528f</id>
<content type='text'>
Internal flash used for the filesystem is now written (from the cache)
only after a 5s delay, or when a file is closed, or when the drive is
unmounted from the host.  This delay means that multiple writes can
accumulate in the cache, and leads to less writes to the flash, making
it last longer.

It's implemented by a high-priority interrupt that takes care of flash
erase and write, and flushing the cache.

This is still only an interim solution for the flash filesystem.  It
eventually needs to be replaced with something that uses less RAM for
the cache, something that can use more of the flash, and something that
does proper wear levelling.
</content>
</entry>
<entry>
<title>stmhal: Fix USB MSC so that it unmounts correctly on Mac OS X.</title>
<updated>2014-04-15T18:56:32+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-15T18:56:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9699ea6a2f85c344296eb0046d9bad8f0c183d1a'/>
<id>urn:sha1:9699ea6a2f85c344296eb0046d9bad8f0c183d1a</id>
<content type='text'>
Mac OS X sends a SCSI command to remove the medium when it unmounts a
drive.  If this command is not honoured, then OS X will automatically
remount the drive, making it impossible to eject.  This patch disables
the USB MSC when the right SCSI command is sent.
</content>
</entry>
<entry>
<title>stmhal: Implement selector for USB device mode; improve boot up.</title>
<updated>2014-03-30T00:00:15+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-30T00:00:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=038df4318362325b5b6b77f7582fb6373a240f3c'/>
<id>urn:sha1:038df4318362325b5b6b77f7582fb6373a240f3c</id>
<content type='text'>
Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID.
Choice is made by an option in boot.py, with default being CDC+MSC.
HID+MSC is not currently supported, but should be easy to implement.

Boot up now has ability to change the reset mode: hold down USR switch
while booting and LEDs will count from 1 to 7 to indicate the boot mode.
Release USR when correct mode is selected.  Current modes are 1 (normal
boot), 2 (safe mode), 3 (reset FS mode).
</content>
</entry>
<entry>
<title>stmhal: Add CDC+HID USB device.</title>
<updated>2014-03-29T21:57:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-29T21:57:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=64563e39b3b6456a50b3ad04a61809ebb7b61b4b'/>
<id>urn:sha1:64563e39b3b6456a50b3ad04a61809ebb7b61b4b</id>
<content type='text'>
The HID device must appear before the CDC in order for both to work at
the same time.

Whilst the code is working, it's not currently used.
</content>
</entry>
<entry>
<title>stmhal: Tidy up USB CDC+MSC device some more.</title>
<updated>2014-03-22T13:21:58+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-22T13:21:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2fb37847a712127543c879cd4c925ac4ee3c8554'/>
<id>urn:sha1:2fb37847a712127543c879cd4c925ac4ee3c8554</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Tidy up USB device configuration.  Make it use less RAM.</title>
<updated>2014-03-22T12:46:23+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-22T12:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a6787edcea4ff1aa6113eff85c3b866ae0c6cb8c'/>
<id>urn:sha1:a6787edcea4ff1aa6113eff85c3b866ae0c6cb8c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: USB CDC and MSC device work together.</title>
<updated>2014-03-22T12:32:54+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-22T12:32:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fb25c2d95f2c2e9e5fdf372caa16398eafe3910d'/>
<id>urn:sha1:fb25c2d95f2c2e9e5fdf372caa16398eafe3910d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Add support for USB MSC device.</title>
<updated>2014-03-21T23:32:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-21T23:32:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8913c04831c94d2bcb82b0447ab7ccf6b2e346a6'/>
<id>urn:sha1:8913c04831c94d2bcb82b0447ab7ccf6b2e346a6</id>
<content type='text'>
This gives a functioning, independent MSC device.
</content>
</entry>
<entry>
<title>stmhal: Get USB enumerating a CDC device.</title>
<updated>2014-03-14T00:30:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-14T00:30:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b30c02afa078f7713faa14087ae28433dee49027'/>
<id>urn:sha1:b30c02afa078f7713faa14087ae28433dee49027</id>
<content type='text'>
Enumerates CDC device over USB, but doesn't transmit/receive yet.
</content>
</entry>
</feed>
