mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-11 18:40:45 +00:00
Merge pull request #1946 from kasjer/kasjer/nrf5x-fix-iso-memory-corruption
dcd_nrf5x: ISO OUT handling
This commit is contained in:
commit
b5b2fad5fb
@ -186,12 +186,17 @@ static void xact_out_dma(uint8_t epnum)
|
||||
atomic_flag_clear(&_dcd.dma_running);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (xfer->started)
|
||||
{
|
||||
// Trigger DMA move data from Endpoint -> SRAM
|
||||
NRF_USBD->ISOOUT.PTR = (uint32_t) xfer->buffer;
|
||||
NRF_USBD->ISOOUT.MAXCNT = xact_len;
|
||||
|
||||
start_dma(&NRF_USBD->TASKS_STARTISOOUT);
|
||||
} else {
|
||||
atomic_flag_clear(&_dcd.dma_running);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user