fixup! stm32f09: add register definitions for DMA2

This commit is contained in:
Alfred Klomp 2018-11-06 18:48:18 +01:00
parent a9c0008290
commit b7a9968e4f
2 changed files with 5 additions and 5 deletions

View File

@ -138,11 +138,6 @@ specific memorymap.h header before including this header file.*/
#define DMA2_CMAR4 DMA2_CMAR(DMA_CHANNEL4) #define DMA2_CMAR4 DMA2_CMAR(DMA_CHANNEL4)
#define DMA2_CMAR5 DMA2_CMAR(DMA_CHANNEL5) #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_ISR values ------------------------------------------------------ */
/* --- DMA Interrupt Flag offset values ------------------------------------- */ /* --- DMA Interrupt Flag offset values ------------------------------------- */

View File

@ -33,5 +33,10 @@
#include <libopencm3/stm32/common/dma_common_l1f013.h> #include <libopencm3/stm32/common/dma_common_l1f013.h>
/* 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 #endif