From 2c0d14c53477417666882abc3acf1271a033cb4e Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Thu, 2 Sep 2021 15:47:17 +0100 Subject: [PATCH] AP_HAL_ChibiOS: bdshot version of CUAVv5Nano --- .../hwdef/CUAVv5Nano-bdshot/hwdef-bl.dat | 1 + .../hwdef/CUAVv5Nano-bdshot/hwdef.dat | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano-bdshot/hwdef-bl.dat create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano-bdshot/hwdef.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano-bdshot/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano-bdshot/hwdef-bl.dat new file mode 100644 index 0000000000..0705349733 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano-bdshot/hwdef-bl.dat @@ -0,0 +1 @@ +include ../CUAVv5Nano/hwdef-bl.dat diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano-bdshot/hwdef.dat new file mode 100644 index 0000000000..2956dd9627 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAVv5Nano-bdshot/hwdef.dat @@ -0,0 +1,15 @@ +# Bi-directional dshot version of CUAVv5Nano + +include ../CUAVv5Nano/hwdef.dat + +undef PA10 PE11 PA5 PB3 PB11 + +# This gives bi-dir dshot on the first four channels and regular dshot on the next two +PA10 TIM1_CH3 TIM1 PWM(2) GPIO(51) BIDIR +PE11 TIM1_CH2 TIM1 PWM(3) GPIO(52) BIDIR + +PA5 TIM2_CH1 TIM2 PWM(9) GPIO(58) NODMA +PB3 TIM2_CH2 TIM2 PWM(10) GPIO(59) NODMA +PB11 TIM2_CH4 TIM2 PWM(11) GPIO(60) NODMA + +DMA_PRIORITY TIM1_CH3 TIM1_CH2 TIM1_UP SDMMC* UART8* ADC* SPI* TIM*