Merge pull request #11198 from SteveCEvans/sce_rc2
[betaflight.git] / src / main / target / ALIENWHOOP / target.c
blob44c83fa5ceb5f3703c838827b0e35420e0e50017
1 /*
2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
8 * any later version.
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
26 \ | _ _| __| \ |\ \ /| | _ \ _ \ _ \
27 _ \ | | _| . | \ \ \ / __ | ( |( |__/
28 _/ _\____|___|___|_|\_| \_/\_/ _| _|\___/\___/_|
31 Take me to your leader-board...
37 #include <stdint.h>
39 #include "platform.h"
40 #include "drivers/io.h"
42 #include "drivers/timer.h"
43 #include "drivers/timer_def.h"
44 #include "drivers/dma.h"
46 /* Currently only supporting brushed quad configuration e.g. Tiny Whoop. Care must be
47 * taken to ensure functionality on both F4 and F7 (STM32F405RGT and STM32F722RET)
49 const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
50 DEF_TIM(TIM8, CH4, PC9, TIM_USE_MOTOR, 0, 0),
51 DEF_TIM(TIM3, CH3, PC8, TIM_USE_MOTOR, 0, 0),
52 DEF_TIM(TIM3, CH2, PC7, TIM_USE_MOTOR, 0, 0),
53 DEF_TIM(TIM8, CH1, PC6, TIM_USE_MOTOR, 0, 0),
55 DEF_TIM(TIM5, CH1, PA0, TIM_USE_LED, 0, 0),