AP_HAL_ChibiOS: add BDShot for Holybro PH4-mini

Tested, working like its big Holybro Pixhawk4! (copied bdshot files)
And there no telem2 port(usart3), undef to relolve DMA.
I thought the copter stopped twitching like before, more stable!
This commit is contained in:
Nikolay March 2022-07-18 20:11:30 +03:00 committed by Andrew Tridgell
parent 3f410be344
commit fa71a8ccf2
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
include ../PH4-mini/hwdef-bl.dat

View File

@ -0,0 +1,16 @@
# hw definition file for processing by chibios_hwdef.py
# for Holybro PH4-mini hardware.
include ../PH4-mini/hwdef.dat
undef PD8 PD9 PA10 PE11
# This resolve DMA problem
PD8 USART3_TX USART3 NODMA
PD9 USART3_RX USART3 NODMA
# 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
DMA_PRIORITY TIM1_CH3 TIM1_CH2 TIM1_UP SDMMC* USART2* ADC* SPI* TIM*