stm32/h7: Enabled the main DMA controllers

This commit is contained in:
dragonmux
2024-05-03 02:39:44 +01:00
committed by Piotr Esden-Tempski
parent 9087802ce7
commit c0cd79359d
3 changed files with 39 additions and 1 deletions

View File

@@ -42,7 +42,8 @@
# include <libopencm3/stm32/g0/dma.h> # include <libopencm3/stm32/g0/dma.h>
#elif defined(STM32G4) #elif defined(STM32G4)
# include <libopencm3/stm32/g4/dma.h> # include <libopencm3/stm32/g4/dma.h>
#elif defined(STM32H7)
# include <libopencm3/stm32/h7/dma.h>
#else #else
# error "stm32 family not defined." # error "stm32 family not defined."
#endif #endif

View File

@@ -0,0 +1,36 @@
/** @defgroup dma_defines DMA Defines
*
* @ingroup STM32H7xx_defines
*
* @brief <b>Defined Constants and Types for the STM32H7xx DMA Controller</b>
*
* @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 <http://www.gnu.org/licenses/>.
*/
#ifndef LIBOPENCM3_DMA_H
#define LIBOPENCM3_DMA_H
#include <libopencm3/stm32/common/dma_common_f24.h>
#endif

View File

@@ -40,6 +40,7 @@ ARFLAGS = rcs
OBJS += crc_common_all.o crc_v2.o OBJS += crc_common_all.o crc_v2.o
OBJS += crs_common_all.o OBJS += crs_common_all.o
OBJS += dac_common_all.o dac_common_v2.o OBJS += dac_common_all.o dac_common_v2.o
OBJS += dma_common_f24.o
OBJS += exti_common_all.o OBJS += exti_common_all.o
OBJS += fdcan.o fdcan_common.o OBJS += fdcan.o fdcan_common.o
OBJS += flash.o OBJS += flash.o