Fixed position of PSIZE bits, thanks to Patrick for spotting this.
This commit is contained in:
@@ -256,10 +256,10 @@
|
|||||||
#define DMA_CCR_MSIZE_SHIFT 10
|
#define DMA_CCR_MSIZE_SHIFT 10
|
||||||
|
|
||||||
/* PSIZE[9:8]: Peripheral size */
|
/* PSIZE[9:8]: Peripheral size */
|
||||||
#define DMA_CCR_PSIZE_8BIT (0x0 << 10)
|
#define DMA_CCR_PSIZE_8BIT (0x0 << 8)
|
||||||
#define DMA_CCR_PSIZE_16BIT (0x1 << 10)
|
#define DMA_CCR_PSIZE_16BIT (0x1 << 8)
|
||||||
#define DMA_CCR_PSIZE_32BIT (0x2 << 10)
|
#define DMA_CCR_PSIZE_32BIT (0x2 << 8)
|
||||||
#define DMA_CCR_PSIZE_MASK (0x2 << 10)
|
#define DMA_CCR_PSIZE_MASK (0x2 << 8)
|
||||||
#define DMA_CCR_PSIZE_SHIFT 8
|
#define DMA_CCR_PSIZE_SHIFT 8
|
||||||
|
|
||||||
/* MINC: Memory increment mode */
|
/* MINC: Memory increment mode */
|
||||||
|
|||||||
Reference in New Issue
Block a user