From c29056b2bff8d9c05c59fea7a132f7149bcb091f Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Thu, 28 Mar 2024 09:53:18 +0000 Subject: [PATCH] AP_HAL_ChibiOS: rework Foxeer F405v2 pin assignments --- libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat index eaf97af4be530b..7daec370246cb6 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/FoxeerF405v2/hwdef.dat @@ -61,12 +61,12 @@ PA10 USART1_RX USART1 PA9 USART1_TX USART1 # USART2 -PA2 USART2_TX USART2 +PA2 USART2_TX USART2 NODMA PA3 USART2_RX USART2 # USART3 PC10 USART3_TX USART3 -PC11 USART3_RX USART3 +PC11 USART3_RX USART3 NODMA # UART4 PA0 UART4_TX UART4 @@ -89,7 +89,7 @@ PB9 I2C1_SDA I2C1 # Servos PB1 SERVO1 OUTPUT GPIO(70) LOW define RELAY2_PIN_DEFAULT 70 -PB0 CAMERA1 OUTPUT GPIO(71) LOW +PB14 CAMERA1 OUTPUT GPIO(71) LOW define RELAY3_PIN_DEFAULT 71 # ADC ports @@ -115,6 +115,8 @@ PA15 TIM2_CH1 TIM2 PWM(6) GPIO(55) # M6 PB11 TIM2_CH4 TIM2 PWM(7) GPIO(56) # M7 PB10 TIM2_CH3 TIM2 PWM(8) GPIO(57) # M8 +PB7 TIM4_CH2 TIM4 PWM(9) GPIO(58) # LED + # LEDs PA13 LED0 OUTPUT LOW GPIO(90) @@ -144,7 +146,7 @@ BARO DPS310 I2C:0:0x76 # IMU setup SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 8*MHZ -IMU Invensensev3 SPI:imu1 ROTATION_YAW_180 +IMU Invensensev3 SPI:imu1 ROTATION_PITCH_180_YAW_90 DMA_NOSHARE TIM1_UP TIM8_UP TIM4_UP TIM2_UP SPI1* DMA_PRIORITY TIM1_UP TIM8_UP TIM4_UP TIM2_UP SPI1*