clean up
This commit is contained in:
parent
de43df2d97
commit
3b83813f01
|
@ -7,17 +7,20 @@ assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Set up (mandatory):**
|
**Set up**
|
||||||
Provide details of your setup help us to reproduce the issue as quick as possible
|
[Mandatory] Provide details of your setup help us to reproduce the issue as quick as possible
|
||||||
- **PC OS** : Ubuntu 18.04 / Windows 10/ macOS 10.15
|
- **PC OS** : Ubuntu 18.04 / Windows 10/ macOS 10.15
|
||||||
- **Board** : Feather nRF52840 Express
|
- **Board** : Feather nRF52840 Express
|
||||||
- **Firmware**: examples/device/cdc_msc
|
- **Firmware**: examples/device/cdc_msc
|
||||||
|
|
||||||
**Bug Description**
|
**Describe the bug**
|
||||||
Describe what the bug is.
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
**Reproduce**
|
**To reproduce**
|
||||||
Steps to reproduce the behavior:
|
Steps to reproduce the behavior:
|
||||||
1. Go to '...'
|
1. Go to '...'
|
||||||
2. Click on '....'
|
2. Click on '....'
|
||||||
3. See error
|
3. See error
|
||||||
|
|
||||||
|
**Log & screenshots**
|
||||||
|
If applicable, add screenshots and TinyUSB's log to help explain your problem. To enable logging, add `LOG=2` to your make command if building with stock examples or set `CFG_TUSB_DEBUG=2` in your tusb_config.h.
|
|
@ -7,5 +7,8 @@ assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Feature Description**
|
**Is your feature request related to a problem? Please describe.**
|
||||||
Describe your feature
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
|
@ -7,4 +7,4 @@ assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Question Description**
|
**Describe what the question is**
|
||||||
|
|
|
@ -73,10 +73,6 @@ TinyUSB is completely thread-safe by pushing all ISR events into a central queue
|
||||||
- **FreeRTOS**
|
- **FreeRTOS**
|
||||||
- **Mynewt** Due to the newt package build system, Mynewt examples are better to be on its [own repo](https://github.com/hathach/mynewt-tinyusb-example)
|
- **Mynewt** Due to the newt package build system, Mynewt examples are better to be on its [own repo](https://github.com/hathach/mynewt-tinyusb-example)
|
||||||
|
|
||||||
## Compiler & IDE
|
|
||||||
|
|
||||||
The stack is developed with GCC compiler and should be compilable with others. The `examples` folder provides Makefile and Segger Embedded Studio build support. [Here are example build instructions](examples/readme.md).
|
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
[Here are the details for getting started](docs/getting_started.md) with the stack.
|
[Here are the details for getting started](docs/getting_started.md) with the stack.
|
||||||
|
|
|
@ -88,13 +88,14 @@ bool tud_midi_n_mounted (uint8_t itf)
|
||||||
static void _prep_out_transaction (midid_interface_t* p_midi)
|
static void _prep_out_transaction (midid_interface_t* p_midi)
|
||||||
{
|
{
|
||||||
// skip if previous transfer not complete
|
// skip if previous transfer not complete
|
||||||
if ( usbd_edpt_busy(TUD_OPT_RHPORT, p_midi->ep_out) )
|
if ( usbd_edpt_busy(TUD_OPT_RHPORT, p_midi->ep_out) ) return;
|
||||||
return;
|
|
||||||
|
|
||||||
// Prepare for incoming data but only allow what we can store in the ring buffer.
|
// Prepare for incoming data but only allow what we can store in the ring buffer.
|
||||||
uint16_t max_read = tu_fifo_remaining(&p_midi->rx_ff);
|
uint16_t max_read = tu_fifo_remaining(&p_midi->rx_ff);
|
||||||
if ( max_read >= CFG_TUD_MIDI_EPSIZE )
|
if ( max_read >= CFG_TUD_MIDI_EPSIZE )
|
||||||
|
{
|
||||||
usbd_edpt_xfer(TUD_OPT_RHPORT, p_midi->ep_out, p_midi->epout_buf, CFG_TUD_MIDI_EPSIZE);
|
usbd_edpt_xfer(TUD_OPT_RHPORT, p_midi->ep_out, p_midi->epout_buf, CFG_TUD_MIDI_EPSIZE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
Loading…
Reference in New Issue