Skip to content

Commit

Permalink
[XDMAC] Don't reset busyStatus on end-of-flush events
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Pertsch committed Dec 21, 2021
1 parent 141ec7a commit 89bb03d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion peripheral/xdmac_11161/templates/plib_xdmac.c.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ void ${DMA_INSTANCE_NAME}_InterruptHandler( void )
}

if (event != XDMAC_TRANSFER_NONE) {
xdmacChObj->busyStatus = false;
/* a flush event may occur while a DMA transfer is still running. Therefore don't
* reset the busyStatus in this case.
*/
if (event != XDMAC_TRANSFER_FLUSH_END)
{
xdmacChObj->busyStatus = false;
}

if (NULL != xdmacChObj->callback)
{
Expand Down

0 comments on commit 89bb03d

Please sign in to comment.