From b7a9968e4f6d1dfb769269bbebcd338bde4ba596 Mon Sep 17 00:00:00 2001 From: Alfred Klomp Date: Tue, 6 Nov 2018 18:48:18 +0100 Subject: [PATCH] fixup! stm32f09: add register definitions for DMA2 --- include/libopencm3/stm32/common/dma_common_l1f013.h | 5 ----- include/libopencm3/stm32/f0/dma.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/libopencm3/stm32/common/dma_common_l1f013.h b/include/libopencm3/stm32/common/dma_common_l1f013.h index ab67246c..489c9def 100644 --- a/include/libopencm3/stm32/common/dma_common_l1f013.h +++ b/include/libopencm3/stm32/common/dma_common_l1f013.h @@ -138,11 +138,6 @@ specific memorymap.h header before including this header file.*/ #define DMA2_CMAR4 DMA2_CMAR(DMA_CHANNEL4) #define DMA2_CMAR5 DMA2_CMAR(DMA_CHANNEL5) -/* DMA channel selection register (DMAx_CSELR) */ -#define DMA_CSELR(dma_base) MMIO32((dma_base) + 0xA8) -#define DMA1_CSELR DMA_CSELR(DMA1) -#define DMA2_CSELR DMA_CSELR(DMA2) - /* --- DMA_ISR values ------------------------------------------------------ */ /* --- DMA Interrupt Flag offset values ------------------------------------- */ diff --git a/include/libopencm3/stm32/f0/dma.h b/include/libopencm3/stm32/f0/dma.h index 42b4687d..001cbfc2 100644 --- a/include/libopencm3/stm32/f0/dma.h +++ b/include/libopencm3/stm32/f0/dma.h @@ -33,5 +33,10 @@ #include +/* DMA channel selection register (DMAx_CSELR) */ +#define DMA_CSELR(dma_base) MMIO32((dma_base) + 0xA8) +#define DMA1_CSELR DMA_CSELR(DMA1) +#define DMA2_CSELR DMA_CSELR(DMA2) + #endif