diff --git a/include/libopencm3/stm32/dma.h b/include/libopencm3/stm32/dma.h index 6938b083..7310141c 100644 --- a/include/libopencm3/stm32/dma.h +++ b/include/libopencm3/stm32/dma.h @@ -17,7 +17,9 @@ * along with this library. If not, see . */ -#if defined(STM32F1) +#if defined(STM32F0) +# include +#elif defined(STM32F1) # include #elif defined(STM32F2) # include diff --git a/include/libopencm3/stm32/f0/dma.h b/include/libopencm3/stm32/f0/dma.h new file mode 100644 index 00000000..a118a366 --- /dev/null +++ b/include/libopencm3/stm32/f0/dma.h @@ -0,0 +1,38 @@ +/** @defgroup dma_defines DMA Defines + * + * @ingroup STM32F1xx_defines + * + * @brief Defined Constants and Types for the STM32F1xx DMA Controller + * + * @version 1.0.0 + * + * @date 10 July 2013 + * + * 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 +#include + +#endif + diff --git a/lib/stm32/f0/Makefile b/lib/stm32/f0/Makefile index 3c7c0e13..b337ee61 100644 --- a/lib/stm32/f0/Makefile +++ b/lib/stm32/f0/Makefile @@ -33,10 +33,11 @@ CFLAGS = -Os -g \ ARFLAGS = rcs -OBJS = flash.o rcc.o usart.o +OBJS = flash.o rcc.o usart.o dma.o OBJS += gpio_common_all.o gpio_common_f0234.o crc_common_all.o \ - pwr_common_all.o iwdg_common_all.o rtc_common_bcd.o + pwr_common_all.o iwdg_common_all.o rtc_common_bcd.o \ + dma_common_f13.o VPATH += ../../usb:../:../../cm3:../common diff --git a/lib/stm32/f0/dma.c b/lib/stm32/f0/dma.c new file mode 100644 index 00000000..230d5e38 --- /dev/null +++ b/lib/stm32/f0/dma.c @@ -0,0 +1,33 @@ +/** @defgroup dma_file DMA + * + * @ingroup STM32F0xx + * + * @brief libopencm3 STM32F0xx DMA + * + * @version 1.0.0 + * + * @date 10 July 2013 + * + * 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 . + */ + +#include +#include +