stm32g4: Add support for DMA
This commit is contained in:
parent
17d6660491
commit
b84bf6e244
|
@ -40,6 +40,8 @@
|
|||
# include <libopencm3/stm32/l4/dma.h>
|
||||
#elif defined(STM32G0)
|
||||
# include <libopencm3/stm32/g0/dma.h>
|
||||
#elif defined(STM32G4)
|
||||
# include <libopencm3/stm32/g4/dma.h>
|
||||
#else
|
||||
# error "stm32 family not defined."
|
||||
#endif
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
/** @defgroup dma_defines DMA Defines
|
||||
*
|
||||
* @ingroup STM32G4xx_defines
|
||||
*
|
||||
* @brief <b>Defined Constants and Types for the STM32G4xx 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_l1f013.h>
|
||||
|
||||
#define DMA_CHANNEL8 8
|
||||
|
||||
#endif
|
||||
|
|
@ -35,6 +35,7 @@ TGT_CFLAGS += $(DEBUG_FLAGS)
|
|||
TGT_CFLAGS += $(STANDARD_FLAGS)
|
||||
ARFLAGS = rcs
|
||||
|
||||
OBJS += dma_common_l1f013.o
|
||||
OBJS += dmamux.o
|
||||
OBJS += flash.o flash_common_all.o flash_common_f.o flash_common_idcache.o
|
||||
OBJS += gpio_common_all.o gpio_common_f0234.o
|
||||
|
|
Loading…
Reference in New Issue