From df283a17392faa582207881d922c5872c10ac09e Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 25 May 2024 09:04:07 +0100 Subject: [PATCH] AP_HAL_ChibiOS: add servo outputs as motors to FoxeerF405v2 --- libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat index 31b8c0a884..787ddce67e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat @@ -92,8 +92,6 @@ PB8 I2C1_SCL I2C1 PB9 I2C1_SDA I2C1 # Servos -PB1 SERVO1 OUTPUT GPIO(70) LOW -define RELAY2_PIN_DEFAULT 70 PB14 CAMERA1 OUTPUT GPIO(71) LOW define RELAY3_PIN_DEFAULT 71 @@ -122,6 +120,10 @@ PB10 TIM2_CH3 TIM2 PWM(8) GPIO(57) # M8 PB7 TIM4_CH2 TIM4 PWM(9) GPIO(58) # LED +# Servos +PB1 TIM3_CH4 TIM3 PWM(10) GPIO(70) NODMA # S1 / M10 +PB0 TIM3_CH3 TIM3 PWM(11) GPIO(72) NODMA # S2 / M11 + # LEDs PA13 LED0 OUTPUT LOW GPIO(90)