f2/dma.h: Whitespace and coding-style fixes.
This commit is contained in:
parent
9949b5dcf4
commit
5f82f28d01
@ -30,7 +30,7 @@
|
||||
#define DMA2 DMA2_BASE
|
||||
|
||||
/* DMA stream base addresses (for convenience) */
|
||||
#define DMA_STREAM(port, n) (port + 0x10 + 24*n)
|
||||
#define DMA_STREAM(port, n) ((port) + 0x10 + (24 * (n)))
|
||||
#define DMA1_STREAM(n) DMA_STREAM(DMA1, n)
|
||||
#define DMA2_STREAM(n) DMA_STREAM(DMA2, n)
|
||||
|
||||
@ -146,7 +146,7 @@
|
||||
#define DMA2_S7PAR DMA2_SPAR(7)
|
||||
|
||||
/* DMA Stream x memory address 0 register (DMA_SxM0AR) */
|
||||
#define DMA_SM0AR(port, n) *(volatile void **)(DMA_STREAM(port, n) + 0x0C)
|
||||
#define DMA_SM0AR(port, n) *(volatile void **)(DMA_STREAM(port, n) + 0x0c)
|
||||
#define DMA1_SM0AR(n) DMA_SM0AR(DMA1, n)
|
||||
#define DMA2_SM0AR(n) DMA_SM0AR(DMA2, n)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user