From bb270014e7d52f718bdb314eb73dffe0c0a1c95a Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 13 Mar 2021 08:49:55 +0000 Subject: [PATCH] AP_HAL_ChibiOS: make sure LEDs get a DMA channel on MatekH743-bdshot --- libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat index bfa27f440a..06e4834e90 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743-bdshot/hwdef.dat @@ -5,7 +5,7 @@ include ../MatekH743/hwdef.dat # undefine the pins we are going to change -undef PC7 PB0 PB1 PA0 PA1 PA15 +undef PC7 PB0 PB1 PA0 PA1 PA15 PD14 PD15 PE5 PE6 PC7 USART6_RX USART6 @@ -15,6 +15,12 @@ PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51) PA0 TIM2_CH1 TIM2 PWM(3) GPIO(52) BIDIR PA1 TIM2_CH2 TIM2 PWM(4) GPIO(53) +# Disable DMA on PWM9-12 so that the LEDs get a channel +PD14 TIM4_CH3 TIM4 PWM(9) GPIO(58) NODMA +PD15 TIM4_CH4 TIM4 PWM(10) GPIO(59) NODMA +PE5 TIM15_CH1 TIM15 PWM(11) GPIO(60) NODMA +PE6 TIM15_CH2 TIM15 PWM(12) GPIO(61) NODMA + # Beeper PA15 BUZZER OUTPUT GPIO(32) LOW define HAL_BUZZER_PIN 32