libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
lptimer.h
Go to the documentation of this file.
1/* This provides unification of code over STM32 subfamilies */
2
3/*
4 * This file is part of the libopencm3 project.
5 *
6 * Copyright (C) 2019 Guillaume Revaillot <g.revaillot@gmail.com>
7 *
8 * This library is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21
24
25#if defined(STM32F4)
26# include <libopencm3/stm32/f4/lptimer.h>
27#elif defined(STM32F7)
29#elif defined(STM32L0)
30# include <libopencm3/stm32/l0/lptimer.h>
31#elif defined(STM32L4)
32# include <libopencm3/stm32/l4/lptimer.h>
33#elif defined(STM32G0)
34# include <libopencm3/stm32/g0/lptimer.h>
35#else
36# error "stm32 family not defined."
37#endif
38