csudma: Modified logic of polling variable in example.
Signed-off-by: VNSL Durga <vnsldurg@xilinx.com> Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
This commit is contained in:
parent
a7d10c5f22
commit
a83a191293
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ int XCsuDma_IntrExample(u16 DeviceId)
|
|||
XCsuDma_Transfer(&CsuDma, XCSUDMA_SRC_CHANNEL, SRC_ADDR, SIZE, EnLast);
|
||||
|
||||
/* Wait for generation of destination work is done */
|
||||
while(DstDone == 1);
|
||||
while(DstDone == 0);
|
||||
/* Disable interrupts */
|
||||
XCsuDma_DisableIntr(&CsuDma, XCSUDMA_DST_CHANNEL,
|
||||
XCSUDMA_IXR_DONE_MASK);
|
||||
|
|
Loading…
Add table
Reference in a new issue