-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathtarget.c
More file actions
43 lines (37 loc) · 1.94 KB
/
Copy pathtarget.c
File metadata and controls
43 lines (37 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* This file is part of Cleanflight.
*
* Cleanflight is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Cleanflight 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <platform.h>
#include "drivers/io.h"
#include "drivers/pwm_mapping.h"
#include "drivers/timer.h"
timerHardware_t timerHardware[] = {
// DEF_TIM(TIM5, CH1, PA0, TIM_USE_PWM | TIM_USE_PPM, 0, 0 ), // PPM IN
// DEF_TIM(TIM5, CH2, PA1, TIM_USE_PWM, 0, 0 ),
// DEF_TIM(TIM3, CH3, PB0, TIM_USE_PWM, 0, 0 ),
// DEF_TIM(TIM2, CH3, PB10, TIM_USE_PWM, 0, 0 ),
// DEF_TIM(TIM2, CH4, PB11, TIM_USE_PWM, 0, 0 ),
// DEF_TIM(TIM1, CH1, PA8, TIM_USE_PWM, 0, 0 ),
DEF_TIM(TIM12, CH1, PB14, TIM_USE_OUTPUT_AUTO, 0, 0 ),
DEF_TIM(TIM12, CH2, PB15, TIM_USE_OUTPUT_AUTO, 0, 0 ),
DEF_TIM(TIM8, CH1, PC6, TIM_USE_OUTPUT_AUTO, 0, 0 ),
DEF_TIM(TIM8, CH2, PC7, TIM_USE_OUTPUT_AUTO, 0, 1 ), // dmavar 1: dedicated stream, avoids sharing TIM8_CH1's combined-channel request
DEF_TIM(TIM8, CH3, PC8, TIM_USE_OUTPUT_AUTO, 0, 1 ), // dmavar 1: dedicated stream, avoids sharing TIM8_CH1's combined-channel request
DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0 ),
DEF_TIM(TIM3, CH4, PB1, TIM_USE_LED, 0, 0 ),
};
const int timerHardwareCount = sizeof(timerHardware) / sizeof(timerHardware[0]);