forked from RIOT-OS/RIOT
-
Notifications
You must be signed in to change notification settings - Fork 0
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_eth: Cleanup & fix DMA descriptor
- Add missing `volatile` to DMA descriptor, as memory is also accessed by the DMA without knowledge of the compiler - Dropped `__attribute__((packed))` from DMA descriptor - The DMA descriptor fields need to be aligned on word boundries to properly function - The compiler can now more efficiently access the fields (safes ~300 B ROM) - Moved the DMA descriptor struct and the flags to `periph_cpu.h` - This allows Doxygen documentation being build for it - Those types and fields are needed for a future PTP implementation - Renamed DMA descriptor flags - They now reflect to which field in the DMA descriptor they refer to, so that confusion is avoided - Added documentation to the DMA descriptor and the corresponding flags
- Loading branch information
Showing
2 changed files
with
109 additions
and
41 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