stm32l0: enable iwdg

This commit is contained in:
Guillaume Revaillot 2018-03-27 18:30:36 +02:00 committed by Karl Palsson
parent 207eb07d4c
commit c670bdca1a
4 changed files with 70 additions and 0 deletions

View File

@ -30,6 +30,8 @@
# include <libopencm3/stm32/f3/iwdg.h>
#elif defined(STM32F4)
# include <libopencm3/stm32/f4/iwdg.h>
#elif defined(STM32L0)
# include <libopencm3/stm32/l0/iwdg.h>
#elif defined(STM32L1)
# include <libopencm3/stm32/l1/iwdg.h>
#elif defined(STM32L4)

View File

@ -0,0 +1,36 @@
/** @defgroup iwdg_defines IWDG Defines
*
* @brief <b>Defined Constants and Types for the STM32L0xx Independent Watchdog
* Timer</b>
*
* @ingroup STM32L0xx_defines
*
* @version 1.0.0
*
* @date 28 March 2018
*
* 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_IWDG_H
#define LIBOPENCM3_IWDG_H
#include <libopencm3/stm32/common/iwdg_common_v2.h>
#endif

View File

@ -48,6 +48,7 @@ OBJS += flash.o flash_common_l01.o
OBJS += i2c_common_v2.o
OBJS += rng_common_v1.o
OBJS += usart_common_all.o usart_common_v2.o
OBJS += iwdg_common_all.o
OBJS += usb.o usb_control.o usb_standard.o
OBJS += st_usbfs_core.o st_usbfs_v2.o

31
lib/stm32/l0/iwdg.c Normal file
View File

@ -0,0 +1,31 @@
/** @defgroup iwdg_file IWDG
@ingroup STM32l0xx
@brief <b>libopencm3 STM32L0xx Independent Watchdog Timer</b>
@version 1.0.0
@date 28 March 2018
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/iwdg.h>