From dcb634b3d855e1ae167a8536b4e0fe1e5e7bb36d Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 6 Apr 2022 08:47:42 +0100 Subject: [PATCH] AP_HAL_ChibiOS: bdshot version of MatekF765-Wing --- .../hwdef/MatekF765-Wing-bdshot/defaults.parm | 2 ++ .../hwdef/MatekF765-Wing-bdshot/hwdef-bl.dat | 4 ++++ .../hwdef/MatekF765-Wing-bdshot/hwdef.dat | 14 ++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/defaults.parm create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/defaults.parm new file mode 100644 index 0000000000..7b610d2326 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/defaults.parm @@ -0,0 +1,2 @@ +SERVO13_FUNCTION 120 +NTF_LED_TYPES 455 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/hwdef-bl.dat new file mode 100644 index 0000000000..b3863b4997 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/hwdef-bl.dat @@ -0,0 +1,4 @@ +# hw definition file for processing by chibios_pins.py +# for Matek F765-Wing bootloader + +include ../MatekF765-Wing/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/hwdef.dat new file mode 100644 index 0000000000..ec6b1ee22d --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing-bdshot/hwdef.dat @@ -0,0 +1,14 @@ +# Bi-directional dshot version of MatekF765-Wing + +include ../MatekF765-Wing/hwdef.dat + +# undefine the pins we are going to change +undef PA0 PA1 PA2 PA3 + +# hw definition file for processing by chibios_pins.py +# for Matek F765-Wing + +PA0 TIM2_CH1 TIM2 PWM(1) GPIO(50) BIDIR +PA1 TIM2_CH2 TIM2 PWM(2) GPIO(51) +PA2 TIM5_CH3 TIM5 PWM(3) GPIO(52) BIDIR +PA3 TIM5_CH4 TIM5 PWM(4) GPIO(53)