aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2012-03-17 16:17:40 -0700
committerPiotr Esden-Tempski2012-03-17 16:17:40 -0700
commit4e26104c188148431424063af75a1c99cdafd6ae (patch)
tree249ef74c6c18c301c732f9857697192a384eaa55
parent06d6f3e0e64b49e8aab7ebe40896031b6c619172 (diff)
Fixed position of PSIZE bits, thanks to Patrick for spotting this.
-rw-r--r--include/libopencm3/stm32/f1/dma.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libopencm3/stm32/f1/dma.h b/include/libopencm3/stm32/f1/dma.h
index 897e0c5..7f9abad 100644
--- a/include/libopencm3/stm32/f1/dma.h
+++ b/include/libopencm3/stm32/f1/dma.h
@@ -256,10 +256,10 @@
#define DMA_CCR_MSIZE_SHIFT 10
/* PSIZE[9:8]: Peripheral size */
-#define DMA_CCR_PSIZE_8BIT (0x0 << 10)
-#define DMA_CCR_PSIZE_16BIT (0x1 << 10)
-#define DMA_CCR_PSIZE_32BIT (0x2 << 10)
-#define DMA_CCR_PSIZE_MASK (0x2 << 10)
+#define DMA_CCR_PSIZE_8BIT (0x0 << 8)
+#define DMA_CCR_PSIZE_16BIT (0x1 << 8)
+#define DMA_CCR_PSIZE_32BIT (0x2 << 8)
+#define DMA_CCR_PSIZE_MASK (0x2 << 8)
#define DMA_CCR_PSIZE_SHIFT 8
/* MINC: Memory increment mode */