I am working on AD9361 with No-OS driver.
Sample code of the No-OS driver provides cyclic dma at the Tx side.
It is working very well.
Now, I want to use cyclic dma at the Rx side to receive data into ring buffer continuously, so that there is no data loss.
I set 'AXI_DMAC_REG_FLAGS' to one. However, it doesn't seem to work.
How can I use cyclic dma at the Rx side.
int32_t adc_capture(uint32_t size, uint32_t start_address)
// Cyclic Mode 0:OFF, 1:ON
adc_dma_write(AXI_DMAC_REG_X_LENGTH, length - 1);
// Transfer Start
/* Wait until the new transfer is queued. */
while(reg_val == 1);