Tentative fix for bug #1147.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14061 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-03-07 08:13:13 +00:00
parent 5784a22544
commit f77cc7962a
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@ static void wspi_lld_serve_interrupt(WSPIDriver *wspip) {
while (dmaStreamGetTransactionSize(wspip->dma) > 0U) while (dmaStreamGetTransactionSize(wspip->dma) > 0U)
; ;
/* Clearing DMA interrupts here because the DMA ISR is not called on
transfer complete.*/
dmaStreamClearInterrupt(wspip->dma);
/* Handling of errata: Extra data written in the FIFO at the end of a /* Handling of errata: Extra data written in the FIFO at the end of a
read transfer.*/ read transfer.*/
if (wspip->state == WSPI_RECEIVE) { if (wspip->state == WSPI_RECEIVE) {