From 644c7c316dc4da7c0659d6d5c9a88b5d38127afe Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Fri, 21 Oct 2022 13:25:01 +0530 Subject: [PATCH] AP_HAL_ChibiOS: add CubeOrangePlus bdshot hwdef --- .../hwdef/CubeOrangePlus-bdshot/hwdef-bl.dat | 1 + .../hwdef/CubeOrangePlus-bdshot/hwdef.dat | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-bdshot/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-bdshot/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-bdshot/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-bdshot/hwdef-bl.dat new file mode 100644 index 0000000000..268bb3097c --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-bdshot/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CubeOrangePlus/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-bdshot/hwdef.dat new file mode 100644 index 0000000000..8135e85d34 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus-bdshot/hwdef.dat @@ -0,0 +1,17 @@ +# Bi-directional dshot version of CubeOrange + +include ../CubeOrangePlus/hwdef.dat + +undef PE14 PE13 PE11 PE9 PD13 PD14 + +PE14 TIM1_CH4 TIM1 PWM(1) GPIO(50) BIDIR +PE13 TIM1_CH3 TIM1 PWM(2) GPIO(51) # this will automatically be shared with TIM1_CH4 +PE11 TIM1_CH2 TIM1 PWM(3) GPIO(52) BIDIR +PE9 TIM1_CH1 TIM1 PWM(4) GPIO(53) # this will automatically be shared with TIM1_CH1 +PD13 TIM4_CH2 TIM4 PWM(5) GPIO(54) BIDIR +PD14 TIM4_CH3 TIM4 PWM(6) GPIO(55) BIDIR + +NODMA I2C* +define STM32_I2C_USE_DMA FALSE + +env DEFAULT_PARAMETERS library/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/defaults.parm