stm32l0: flash: use common functionality

Provides all the basic core functionality shared with L1.  No special L0
functionality supported at this point.
This commit is contained in:
Karl Palsson
2017-05-01 22:33:55 +00:00
parent ce787c0f40
commit 2547bf66d9
4 changed files with 92 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ OBJS += gpio_common_all.o gpio_common_f0234.o rcc_common_all.o
OBJS += adc_common_v2.o
OBJS += crs_common_all.o
OBJS += exti_common_all.o
OBJS += flash.o flash_common_l01.o
OBJS += i2c_common_v2.o
OBJS += rng_common_v1.o

27
lib/stm32/l0/flash.c Normal file
View File

@@ -0,0 +1,27 @@
/** @defgroup gpio_file GPIO
*
* @ingroup STM32L0xx
*
* @brief <b>libopencm3 STM32L0xx General Purpose I/O</b>
*
* 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/>.
*/
#include <libopencm3/stm32/flash.h>