We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 990fb6a + f0ddf8d commit b5b2fadCopy full SHA for b5b2fad
src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -187,11 +187,16 @@ static void xact_out_dma(uint8_t epnum)
187
}
188
else
189
{
190
- // Trigger DMA move data from Endpoint -> SRAM
191
- NRF_USBD->ISOOUT.PTR = (uint32_t) xfer->buffer;
192
- NRF_USBD->ISOOUT.MAXCNT = xact_len;
+ if (xfer->started)
+ {
+ // Trigger DMA move data from Endpoint -> SRAM
193
+ NRF_USBD->ISOOUT.PTR = (uint32_t) xfer->buffer;
194
+ NRF_USBD->ISOOUT.MAXCNT = xact_len;
195
- start_dma(&NRF_USBD->TASKS_STARTISOOUT);
196
+ start_dma(&NRF_USBD->TASKS_STARTISOOUT);
197
+ } else {
198
+ atomic_flag_clear(&_dcd.dma_running);
199
+ }
200
201
202
0 commit comments