<feed xmlns='http://www.w3.org/2005/Atom'>
<title>feurig/libmaplemidi-cma/libmaple/usb/stm32f1/usb_cdcacm.c, branch master</title>
<subtitle>C and C++ library for STM32 ARM Cortex-M3 development boards.</subtitle>
<id>https://git.suspectdevices.com/feurig/libmaplemidi-cma/atom?h=master</id>
<link rel='self' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/'/>
<updated>2013-01-18T23:18:30+00:00</updated>
<entry>
<title>usb_cdcacm: Make USB lib globals weak symbols.</title>
<updated>2013-01-18T23:18:30+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2013-01-18T23:18:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=048e70fc4163d8377b590eb134e4a60f7c48f9c3'/>
<id>urn:sha1:048e70fc4163d8377b590eb134e4a60f7c48f9c3</id>
<content type='text'>
This allows users to override them.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>usb_cdcacm.c: Fixups for usb_cdcacm_tx().</title>
<updated>2013-01-17T23:08:39+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2013-01-17T23:08:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=0dbf94bf31077b77ffd893d8396bdfb34ccca341'/>
<id>urn:sha1:0dbf94bf31077b77ffd893d8396bdfb34ccca341</id>
<content type='text'>
- Check if we're transmitting (instead of how many bytes are left
  untransmitted) before bailing, in case we're transmitting a
  zero-length packet.

- Set transmitting=1 before setting the endpoint valid to avoid races
  with the USB interrupt.

- Eliminate some duplicated code.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Handle sending 0 byte packets.</title>
<updated>2013-01-17T20:17:00+00:00</updated>
<author>
<name>Manuel Odendahl</name>
<email>wesen@ruinwesen.com</email>
</author>
<published>2013-01-17T16:41:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=74460684001d31f09b06e2a3eeede58b72b65e68'/>
<id>urn:sha1:74460684001d31f09b06e2a3eeede58b72b65e68</id>
<content type='text'>
Added a flag to see if we are currently waiting on an interrupt to acknowledge the sending of the current
IN packet.
Added a method usb_cdcacm_is_transmitting() to check for that flag.

Signed-off-by: Manuel Odendahl &lt;wesen@ruinwesen.com&gt;
</content>
</entry>
<entry>
<title>Move endpoint definitions to include files (they are now needed outside in usb_serial.cpp)</title>
<updated>2013-01-17T20:11:10+00:00</updated>
<author>
<name>Manuel Odendahl</name>
<email>wesen@ruinwesen.com</email>
</author>
<published>2013-01-17T16:40:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=699f97fdcbb886096870cce1fb6d475514998930'/>
<id>urn:sha1:699f97fdcbb886096870cce1fb6d475514998930</id>
<content type='text'>
Signed-off-by: Manuel Odendahl &lt;wesen@ruinwesen.com&gt;
</content>
</entry>
<entry>
<title>usb_cdcacm.c: reenable the endpoint if an empty bulk transfer was received.</title>
<updated>2012-11-08T19:53:32+00:00</updated>
<author>
<name>Manuel Odendahl</name>
<email>wesen@ruinwesen.com</email>
</author>
<published>2012-11-08T19:51:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=8e14e7ff7752d90e8d15fef417a3dc49bb0af886'/>
<id>urn:sha1:8e14e7ff7752d90e8d15fef417a3dc49bb0af886</id>
<content type='text'>
It is possible to receive empty bulk transfers. This would lead to the endpoint never being reenabled as this was handled by the read routine. This caused the USB to hang.

Signed-off-by: Manuel Odendahl &lt;wesen@ruinwesen.com&gt;
</content>
</entry>
<entry>
<title>usb_cdcacm.c: Fix up descriptor definitions.</title>
<updated>2012-08-04T22:43:50+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-08-04T22:28:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=36b24f9cce2c0fc0be5d64afe126f61ed722022f'/>
<id>urn:sha1:36b24f9cce2c0fc0be5d64afe126f61ed722022f</id>
<content type='text'>
Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Move contents of usb_descriptors.h to &lt;libmaple/usb.h&gt;.</title>
<updated>2012-08-04T22:43:46+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-08-04T21:01:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=cf6e56ed4e31931f060b2d89ac0fb7a35fd111d8'/>
<id>urn:sha1:cf6e56ed4e31931f060b2d89ac0fb7a35fd111d8</id>
<content type='text'>
These form and name of structs etc. is basically determined by the USB
spec and the libmaple style guide, so there's little reason for them
to change, and less reason for them to stay hidden.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Prep usb_descriptors.h for removal.</title>
<updated>2012-08-04T22:43:45+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-08-04T20:54:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=5ac380615e5b5c20f51003c4d71a2a1bdb6a3bdb'/>
<id>urn:sha1:5ac380615e5b5c20f51003c4d71a2a1bdb6a3bdb</id>
<content type='text'>
Just change names and things to fit the libmaple style. Its contents
will move to the top-level &lt;libmaple/usb.h&gt; header next.

This API is still unstable, but we need to expose pieces of it in
order to get the Maple-specific pieces of usb_cdcacm.c into Wirish.

Adjust uses of the API appropriately.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>usb_cdcacm: Remove unused/redundant variables.</title>
<updated>2012-08-04T22:43:40+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-08-04T16:49:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=7f2b5d01129c21db8f9b2da3063265f889c10cc4'/>
<id>urn:sha1:7f2b5d01129c21db8f9b2da3063265f889c10cc4</id>
<content type='text'>
Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>usb_cdcacm: Expose line coding state.</title>
<updated>2012-08-04T05:47:22+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-08-04T05:47:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=a97e9c14ed98ac2c6bcb88694cf58a0d76814b60'/>
<id>urn:sha1:a97e9c14ed98ac2c6bcb88694cf58a0d76814b60</id>
<content type='text'>
This was already supported, so just move the line coding structure to
the header and add some functions for accessing the current values.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
</feed>
