Merge pull request #1946 from kasjer/kasjer/nrf5x-fix-iso-memory-corruption
dcd_nrf5x: ISO OUT handling
This commit is contained in:
commit
b5b2fad5fb
|
@ -187,11 +187,16 @@ static void xact_out_dma(uint8_t epnum)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Trigger DMA move data from Endpoint -> SRAM
|
if (xfer->started)
|
||||||
NRF_USBD->ISOOUT.PTR = (uint32_t) xfer->buffer;
|
{
|
||||||
NRF_USBD->ISOOUT.MAXCNT = xact_len;
|
// 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);
|
start_dma(&NRF_USBD->TASKS_STARTISOOUT);
|
||||||
|
} else {
|
||||||
|
atomic_flag_clear(&_dcd.dma_running);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue