libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
timer.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) 2009 Piotr Esden-Tempski <piotr@esden.net>
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(STM32F0)
26# include <libopencm3/stm32/f0/timer.h>
27#elif defined(STM32F1)
28# include <libopencm3/stm32/f1/timer.h>
29#elif defined(STM32F2)
30# include <libopencm3/stm32/f2/timer.h>
31#elif defined(STM32F3)
32# include <libopencm3/stm32/f3/timer.h>
33#elif defined(STM32F4)
34# include <libopencm3/stm32/f4/timer.h>
35#elif defined(STM32F7)
37#elif defined(STM32L0)
38# include <libopencm3/stm32/l0/timer.h>
39#elif defined(STM32L1)
40# include <libopencm3/stm32/l1/timer.h>
41#elif defined(STM32L4)
42# include <libopencm3/stm32/l4/timer.h>
43#elif defined(STM32G0)
44# include <libopencm3/stm32/g0/timer.h>
45#elif defined(STM32G4)
46# include <libopencm3/stm32/g4/timer.h>
47#elif defined(STM32H7)
48# include <libopencm3/stm32/h7/timer.h>
49#else
50# error "stm32 family not defined."
51#endif
52