Hello everyone
So for those who use the DMA must know that after a transfer is done you need to use uDMAChannelTransferSet() to re-enable it again.
Well most of the times I don't need to change most of the parameters, so can I with HWREG() method avoid setting all those parameters?
In the description of the stop mode it says:
"At the end of a transfer, the μDMA controller updates the control word to set the mode to Stop."
So this means that if I simply change the control word to set the mode to Basic (example) then set the reg DMA Channel Enable Set? With this will a transfer occur with every trigger? Of course in real use I would change some more things like the source address or the transfer size.
If someone could help I would appreciate it. This function is way to big for interrupts so I wanted to not only use HWREG method but also avoid unnecessary setups.