From 7b6710a914482a44146e64e5f2a72866fb810761 Mon Sep 17 00:00:00 2001 From: Bruno Randolf Date: Fri, 15 Dec 2017 15:54:42 +0000 Subject: [PATCH] stm32:l4: Add DMA Same as L1 according to L1-L4 migration guide, untested --- include/libopencm3/stm32/dma.h | 2 ++ include/libopencm3/stm32/l4/dma.h | 37 +++++++++++++++++++++++++++++++ lib/stm32/l4/Makefile | 1 + 3 files changed, 40 insertions(+) create mode 100644 include/libopencm3/stm32/l4/dma.h diff --git a/include/libopencm3/stm32/dma.h b/include/libopencm3/stm32/dma.h index 658b7a60..adffeab6 100644 --- a/include/libopencm3/stm32/dma.h +++ b/include/libopencm3/stm32/dma.h @@ -32,6 +32,8 @@ # include #elif defined(STM32L1) # include +#elif defined(STM32L4) +# include #else # error "stm32 family not defined." #endif diff --git a/include/libopencm3/stm32/l4/dma.h b/include/libopencm3/stm32/l4/dma.h new file mode 100644 index 00000000..9b1a180e --- /dev/null +++ b/include/libopencm3/stm32/l4/dma.h @@ -0,0 +1,37 @@ +/** @defgroup dma_defines DMA Defines + * + * @ingroup STM32L4xx_defines + * + * @brief Defined Constants and Types for the STM32L4xx DMA Controller + * + * @version 1.0.0 + * + * @date 15 December 2017 + * + * LGPL License Terms @ref lgpl_license + * + */ + +/* + * This file is part of the libopencm3 project. + * + * This library is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this library. If not, see . + */ + +#ifndef LIBOPENCM3_DMA_H +#define LIBOPENCM3_DMA_H + +#include + +#endif diff --git a/lib/stm32/l4/Makefile b/lib/stm32/l4/Makefile index 3b643cd7..3247068a 100644 --- a/lib/stm32/l4/Makefile +++ b/lib/stm32/l4/Makefile @@ -48,6 +48,7 @@ OBJS += rng_common_v1.o OBJS += timer_common_all.o OBJS += i2c_common_v2.o OBJS += usart_common_all.o usart_common_v2.o +OBJS += dma_common_l1f013.o VPATH += ../../usb:../:../../cm3:../common VPATH += ../../ethernet