diff --git a/include/libopencm3/stm32/dma.h b/include/libopencm3/stm32/dma.h index 3d553e5c..899f5758 100644 --- a/include/libopencm3/stm32/dma.h +++ b/include/libopencm3/stm32/dma.h @@ -23,8 +23,8 @@ # include #elif defined(STM32F4) # include -/*#elif defined(STM32L1) -# include */ +#elif defined(STM32L1) +# include #else # error "stm32 family not defined." #endif diff --git a/include/libopencm3/stm32/l1/dma.h b/include/libopencm3/stm32/l1/dma.h new file mode 100644 index 00000000..f9b80cbb --- /dev/null +++ b/include/libopencm3/stm32/l1/dma.h @@ -0,0 +1,41 @@ +/** @defgroup STM32L1xx_dma_defines DMA Defines + +@ingroup STM32L1xx_defines + +@brief Defined Constants and Types for the STM32L1xx DMA Controller + +@version 1.0.0 + +@author @htmlonly © @endhtmlonly 2011 Fergus Noble +@author @htmlonly © @endhtmlonly 2012 Ken Sarkies + +@date 18 October 2012 + +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/l1/Makefile b/lib/stm32/l1/Makefile index 86330168..0f9f38b2 100644 --- a/lib/stm32/l1/Makefile +++ b/lib/stm32/l1/Makefile @@ -33,10 +33,12 @@ CFLAGS = -Os -g \ # ARFLAGS = rcsv ARFLAGS = rcs OBJS = crc.o desig.o exti2.o flash.o rcc.o usart.o -OBJS += crc_common_all.o dac_common_all.o gpio_common_all.o -OBJS += gpio_common_f24.o i2c_common_all.o iwdg_common_all.o -OBJS += pwr_common_all.o pwr.o rtc_common_bcd.o -OBJS += spi_common_all.o timer_common_all.o usart_common_all.o +OBJS += crc_common_all.o dac_common_all.o +OBJS += dma_common_f13.o +OBJS += gpio_common_all.o gpio_common_f24.o +OBJS += i2c_common_all.o iwdg_common_all.o +OBJS += pwr_common_all.o pwr.o rtc_common_bcd.o +OBJS += spi_common_all.o timer_common_all.o usart_common_all.o VPATH += ../../usb:../:../../cm3:../common