diff --git a/include/libopencm3/stm32/dma.h b/include/libopencm3/stm32/dma.h index b780550d62..3c869e8861 100644 --- a/include/libopencm3/stm32/dma.h +++ b/include/libopencm3/stm32/dma.h @@ -42,7 +42,8 @@ # include #elif defined(STM32G4) # include +#elif defined(STM32H7) +# include #else # error "stm32 family not defined." #endif - diff --git a/include/libopencm3/stm32/h7/dma.h b/include/libopencm3/stm32/h7/dma.h new file mode 100644 index 0000000000..9d5166896b --- /dev/null +++ b/include/libopencm3/stm32/h7/dma.h @@ -0,0 +1,36 @@ +/** @defgroup dma_defines DMA Defines + * + * @ingroup STM32H7xx_defines + * + * @brief Defined Constants and Types for the STM32H7xx DMA Controller + * + * @version 1.0.0 + * + * @date 9 July 2020 + * + * 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/h7/Makefile b/lib/stm32/h7/Makefile index 08fe11753a..bbe804da24 100644 --- a/lib/stm32/h7/Makefile +++ b/lib/stm32/h7/Makefile @@ -40,6 +40,7 @@ ARFLAGS = rcs OBJS += crc_common_all.o crc_v2.o OBJS += crs_common_all.o OBJS += dac_common_all.o dac_common_v2.o +OBJS += dma_common_f24.o OBJS += exti_common_all.o OBJS += fdcan.o fdcan_common.o OBJS += flash.o diff --git a/lib/stm32/h7/meson.build b/lib/stm32/h7/meson.build index 713b7f7732..9929d7697e 100644 --- a/lib/stm32/h7/meson.build +++ b/lib/stm32/h7/meson.build @@ -59,6 +59,7 @@ libstm32h7 = static_library( libstm32_crc_v2_sources, libstm32_crs_sources, libstm32_dac_v2_sources, + libstm32_dma_f24_sources, libstm32_exti_sources, libstm32_fdcan_sources, libstm32_fmc_f47_sources,