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 © @endhtmlonly 2011 Fergus Noble <fergusnoble@gmail.com>
12
13
LGPL 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
37
#include <
libopencm3/stm32/common/timer_common_all.h
>
38
39
/** Input Capture input polarity */
40
enum
tim_ic_pol
{
41
TIM_IC_RISING
,
42
TIM_IC_FALLING
,
43
};
44
45
/* --- Function prototypes ------------------------------------------------- */
46
47
BEGIN_DECLS
48
49
void
timer_ic_set_polarity
(uint32_t timer,
50
enum
tim_ic_id
ic,
51
enum
tim_ic_pol
pol);
52
53
END_DECLS
END_DECLS
#define END_DECLS
Definition:
common.h:34
BEGIN_DECLS
#define BEGIN_DECLS
Definition:
common.h:33
tim_ic_pol
tim_ic_pol
Input Capture input polarity.
Definition:
f1/timer.h:40
TIM_IC_FALLING
@ TIM_IC_FALLING
Definition:
f1/timer.h:42
TIM_IC_RISING
@ TIM_IC_RISING
Definition:
f1/timer.h:41
tim_ic_id
tim_ic_id
Input Capture channel designators.
Definition:
timer_common_all.h:1084
timer_ic_set_polarity
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
timer_common_all.h
include
libopencm3
stm32
f1
timer.h
Generated on Tue Mar 7 2023 16:11:24 for libopencm3 by
1.9.4