From e38515c2c3d9cd45dca28f5c550b07d1b06bbb73 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 20 Aug 2022 17:23:41 +0200 Subject: [PATCH] AP_HAL_ChibiOS: bdshot version of MatekF405-Wing --- .../hwdef/MatekF405-Wing-bdshot/hwdef-bl.dat | 1 + .../hwdef/MatekF405-Wing-bdshot/hwdef.dat | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing-bdshot/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing-bdshot/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing-bdshot/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing-bdshot/hwdef-bl.dat new file mode 100644 index 0000000000000..ce86b81104bf0 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing-bdshot/hwdef-bl.dat @@ -0,0 +1 @@ +include ../MatekF405-Wing/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing-bdshot/hwdef.dat new file mode 100644 index 0000000000000..4531c681683de --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing-bdshot/hwdef.dat @@ -0,0 +1,16 @@ +# Bi-directional dshot version of MatekF405 + +include ../MatekF405-Wing/hwdef.dat + +undef PB7 PB6 PB0 PB1 PC8 PC9 + +PB7 TIM4_CH2 TIM4 PWM(1) GPIO(50) +PB6 TIM4_CH1 TIM4 PWM(2) GPIO(51) BIDIR +PB0 TIM3_CH3 TIM3 PWM(3) GPIO(52) BIDIR +PB1 TIM3_CH4 TIM3 PWM(4) GPIO(53) + +# Can only do bdshot on M1-4, so give up DMA channel on M5/M6 to get full DMA on USART3 +PC8 TIM8_CH3 TIM8 PWM(5) GPIO(54) NODMA +PC9 TIM8_CH4 TIM8 PWM(6) GPIO(55) NODMA + +DMA_NOSHARE TIM3_UP