stm32: lptimer: enable lptimer.h usage on f4,f7,l4 and g0 chips.
This commit is contained in:
parent
2975c3151a
commit
811aebf096
|
@ -0,0 +1,46 @@
|
|||
/** @defgroup lptimer_defines LPTIM Defines
|
||||
*
|
||||
* @ingroup STM32F4xx_defines
|
||||
*
|
||||
* @brief <b>libopencm3 Defined Constants and Types for the STM32F4xx Low Power Timer</b>
|
||||
*
|
||||
* @version 1.0.0
|
||||
*
|
||||
* LGPL License Terms @ref lgpl_license
|
||||
* */
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* Copyright (C) 2019 Guillaume Revaillot <g.revaillot@gmail.com>
|
||||
*
|
||||
* 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_LPTIMER_H
|
||||
#define LIBOPENCM3_LPTIMER_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/common/lptimer_common_all.h>
|
||||
|
||||
/** @defgroup lptim_reg_base Low Power Timer register base addresses
|
||||
@{*/
|
||||
#define LPTIM1 LPTIM1_BASE
|
||||
/**@}*/
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
END_DECLS
|
||||
|
||||
/**@}*/
|
||||
#endif
|
|
@ -0,0 +1,46 @@
|
|||
/** @defgroup lptimer_defines LPTIM Defines
|
||||
*
|
||||
* @ingroup STM32F7xx_defines
|
||||
*
|
||||
* @brief <b>libopencm3 Defined Constants and Types for the STM32F7xx Low Power Timer</b>
|
||||
*
|
||||
* @version 1.0.0
|
||||
*
|
||||
* LGPL License Terms @ref lgpl_license
|
||||
* */
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* Copyright (C) 2019 Guillaume Revaillot <g.revaillot@gmail.com>
|
||||
*
|
||||
* 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_LPTIMER_H
|
||||
#define LIBOPENCM3_LPTIMER_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/common/lptimer_common_all.h>
|
||||
|
||||
/** @defgroup lptim_reg_base Low Power Timer register base addresses
|
||||
@{*/
|
||||
#define LPTIM1 LPTIM1_BASE
|
||||
/**@}*/
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
END_DECLS
|
||||
|
||||
/**@}*/
|
||||
#endif
|
|
@ -0,0 +1,47 @@
|
|||
/** @defgroup lptimer_defines LPTIM Defines
|
||||
*
|
||||
* @ingroup STM32G0xx_defines
|
||||
*
|
||||
* @brief <b>libopencm3 Defined Constants and Types for the STM32G0xx Low Power Timer</b>
|
||||
*
|
||||
* @version 1.0.0
|
||||
*
|
||||
* LGPL License Terms @ref lgpl_license
|
||||
* */
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* Copyright (C) 2019 Guillaume Revaillot <g.revaillot@gmail.com>
|
||||
*
|
||||
* 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_LPTIMER_H
|
||||
#define LIBOPENCM3_LPTIMER_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/common/lptimer_common_all.h>
|
||||
|
||||
/** @defgroup lptim_reg_base Low Power Timer register base addresses
|
||||
@{*/
|
||||
#define LPTIM1 LPTIM1_BASE
|
||||
#define LPTIM2 LPTIM2_BASE
|
||||
/**@}*/
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
END_DECLS
|
||||
|
||||
/**@}*/
|
||||
#endif
|
|
@ -0,0 +1,47 @@
|
|||
/** @defgroup lptimer_defines LPTIM Defines
|
||||
*
|
||||
* @ingroup STM32L4xx_defines
|
||||
*
|
||||
* @brief <b>libopencm3 Defined Constants and Types for the STM32L4xx Low Power Timer</b>
|
||||
*
|
||||
* @version 1.0.0
|
||||
*
|
||||
* LGPL License Terms @ref lgpl_license
|
||||
* */
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* Copyright (C) 2019 Guillaume Revaillot <g.revaillot@gmail.com>
|
||||
*
|
||||
* 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_LPTIMER_H
|
||||
#define LIBOPENCM3_LPTIMER_H
|
||||
/**@{*/
|
||||
|
||||
#include <libopencm3/stm32/common/lptimer_common_all.h>
|
||||
|
||||
/** @defgroup lptim_reg_base Low Power Timer register base addresses
|
||||
@{*/
|
||||
#define LPTIM1 LPTIM1_BASE
|
||||
#define LPTIM2 LPTIM2_BASE
|
||||
/**@}*/
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
END_DECLS
|
||||
|
||||
/**@}*/
|
||||
#endif
|
|
@ -22,8 +22,16 @@
|
|||
#include <libopencm3/cm3/common.h>
|
||||
#include <libopencm3/stm32/memorymap.h>
|
||||
|
||||
#if defined(STM32L0)
|
||||
#if defined(STM32F4)
|
||||
# include <libopencm3/stm32/f4/lptimer.h>
|
||||
#elif defined(STM32F7)
|
||||
# include <libopencm3/stm32/f7/lptimer.h>
|
||||
#elif defined(STM32L0)
|
||||
# include <libopencm3/stm32/l0/lptimer.h>
|
||||
#elif defined(STM32L4)
|
||||
# include <libopencm3/stm32/l4/lptimer.h>
|
||||
#elif defined(STM32G0)
|
||||
# include <libopencm3/stm32/g0/lptimer.h>
|
||||
#else
|
||||
# error "stm32 family not defined."
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue