We are currently working on the reference design for ADFMCOMMS-1 ZedBoard. It seems that the DMA for ADC is configured in scatter-gather (SG) mode and polling or interrupt are not used in order to inform the CPU that the transaction is done (I am talking about the "adc_capture" function in "test.c" file. There is a portion of code which waits for a certain condition as given below. However, the code seems to rely on the wait functions instead of this condition. My question is: Is it possible to use this design in simple DMA mode in order to understand the basics of DMA better? If it is not, what are the required modifications on the driver code to be able to work in simple DMA mode?
while ((Xil_In32(baddr + 0x088) & 0x1) == 1);
Thanks in advance,