From 5c5c77d4dce877cfd913ce77be44c541ed69a9fb Mon Sep 17 00:00:00 2001 From: Roger Wolff Date: Sun, 25 May 2014 20:26:03 +0200 Subject: [PATCH] stm32/f0: DMA base address compatibility tweak --- include/libopencm3/stm32/f0/memorymap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libopencm3/stm32/f0/memorymap.h b/include/libopencm3/stm32/f0/memorymap.h index ae6a24c8..4802b0f5 100644 --- a/include/libopencm3/stm32/f0/memorymap.h +++ b/include/libopencm3/stm32/f0/memorymap.h @@ -82,6 +82,8 @@ /* AHB1 */ #define DMA_BASE (PERIPH_BASE_AHB1 + 0x0000) +/* DMA is the name in the F0 refman, but all other stm32's use DMA1 */ +#define DMA1_BASE DMA_BASE #define RCC_BASE (PERIPH_BASE_AHB1 + 0x1000)