diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2013-01-17 18:08:39 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2013-01-17 18:08:39 -0500 |
commit | afb4199070e464c317b86741e107692120e05097 (patch) | |
tree | c57eda4542c0bb85f9354e877c0f159dd34fce6f /support/make/board-includes/VLDiscovery.mk | |
parent | 419a6796c2d444762e2ae5b7ae8b846690add839 (diff) | |
download | librambutan-afb4199070e464c317b86741e107692120e05097.tar.gz librambutan-afb4199070e464c317b86741e107692120e05097.zip |
usb_cdcacm.c: Fixups for usb_cdcacm_tx().
- 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 <mbolivar@leaflabs.com>
Diffstat (limited to 'support/make/board-includes/VLDiscovery.mk')
0 files changed, 0 insertions, 0 deletions