mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 07:21:18 +01:00
As implmented, dma_resume assumed that transfers widths were 1 byte and that the memory address incrmenting was always on and periphial address incrementing always off. This resulted in memory corruption anytime these assumptions were not true and a dma was resumed. The DMA module allows intitiating transfers that did not meet these assumption. This patch adds proper handling inside dma_resume to safely resume any transfer. Clearifications and errors are added/fixed in the module's header file. Also, a few constants are removed from the gobal namespace.