libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
f1/timer.h
Go to the documentation of this file.
1/** @defgroup timer_defines Timer Defines
2
3@brief <b>libopencm3 Defined Constants and Types for the STM32F1xx Timers</b>
4
5@ingroup STM32F1xx_defines
6
7@version 1.0.0
8
9@date 8 March 2013
10
11@author @htmlonly &copy; @endhtmlonly 2011 Fergus Noble <fergusnoble@gmail.com>
12
13LGPL License Terms @ref lgpl_license
14*/
15
16/*
17 * This file is part of the libopencm3 project.
18 *
19 * Copyright (C) 2011 Fergus Noble <fergusnoble@gmail.com>
20 *
21 * This library is free software: you can redistribute it and/or modify
22 * it under the terms of the GNU Lesser General Public License as published by
23 * the Free Software Foundation, either version 3 of the License, or
24 * (at your option) any later version.
25 *
26 * This library is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU Lesser General Public License for more details.
30 *
31 * You should have received a copy of the GNU Lesser General Public License
32 * along with this library. If not, see <http://www.gnu.org/licenses/>.
33 */
34
35#pragma once
36
38
39/** Input Capture input polarity */
43};
44
45/* --- Function prototypes ------------------------------------------------- */
46
48
49void timer_ic_set_polarity(uint32_t timer,
50 enum tim_ic_id ic,
51 enum tim_ic_pol pol);
52
#define END_DECLS
Definition: common.h:34
#define BEGIN_DECLS
Definition: common.h:33
tim_ic_pol
Input Capture input polarity.
Definition: f1/timer.h:40
@ TIM_IC_FALLING
Definition: f1/timer.h:42
@ TIM_IC_RISING
Definition: f1/timer.h:41
tim_ic_id
Input Capture channel designators.
void timer_ic_set_polarity(uint32_t timer, enum tim_ic_id ic, enum tim_ic_pol pol)
Set Input Polarity.
Definition: timer.c:43