-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu/stm32/periph/dma: fix dma_resume
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.
- Loading branch information
Showing
2 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters