From 464e7d183a98df7c7a5d8e2b56a174a2b7142a71 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Sat, 18 Mar 2023 08:56:14 +1100 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..db1f4c4841 --- /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 libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/defaults.parm