Forum Discussion
Altera_Forum
Honored Contributor
21 years agoDMA Example HAL
Have anyone a good sample how works with DMA in HAL mode? I need something like to project Streaming with irq and streaming transfer. Thank you so much for any help http://forum.niosforum.com/wor...
Altera_Forum
Honored Contributor
21 years agoJust to clarify, that's _not_ an example of the use of the DMA HAL - it's a demonstration of how to do a DMA transaction with direct register reads and writes.
By the way, instead of if ((IORD_ALTERA_AVALON_DMA_STATUS(SD_DMA_BASE)) && 0x01) you want: if ((IORD_ALTERA_AVALON_DMA_STATUS(SD_DMA_BASE)) & 0x01) even better: if ((IORD_ALTERA_AVALON_DMA_STATUS(SD_DMA_BASE))& ALTERA_AVALON_DMA_STATUS_DONE_MSK)