From 763bbc509ebb80f0729635add00c71df411f93c0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 4 Nov 2023 15:40:59 +1100 Subject: [PATCH] hwdef: bugfixes for BETAFPV-F405 --- libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/defaults.parm | 1 + libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef-bl.dat | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat | 7 +++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/defaults.parm index adfa560b76..92ab484d7a 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/defaults.parm +++ b/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/defaults.parm @@ -1,6 +1,7 @@ # setup for LEDs on chan5 SERVO5_FUNCTION 120 NTF_LED_TYPES 257 +NTF_LED_LEN 2 # Bluejay installed by default SERVO_BLH_AUTO 1 SERVO_BLH_BDMASK 15 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef-bl.dat index bfadaebd7b..c3a9504378 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef-bl.dat @@ -33,6 +33,10 @@ PA14 JTCK-SWCLK SWD # default to all pins low to avoid ESD issues DEFAULTGPIO OUTPUT LOW PULLDOWN +PA10 USART1_RX USART1 HIGH PULLUP +PB11 USART3_RX USART3 HIGH PULLUP +PA1 UART4_RX UART4 NODMA HIGH PULLUP +PC7 USART6_RX USART6 HIGH PULLUP # Chip select pins PB3 BARO1_CS CS diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat index 0cda372cde..4537061fd5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405/hwdef.dat @@ -58,7 +58,10 @@ PA12 OTG_FS_DP OTG1 PA10 USART1_RX USART1 PA9 USART1_TX USART1 -HAL_SERIAL2_PROTOCOL SerialProtocol_None +define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_GPS + +define DEFAULT_SERIAL2_PROTOCOL SerialProtocol_None +define DEFAULT_SERIAL5_PROTOCOL SerialProtocol_None # USART3 (ELRS) PB10 USART3_TX USART3 @@ -126,7 +129,7 @@ define AP_BARO_BMP280_ENABLED 1 # 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_ROLL_180_YAW_270 DMA_NOSHARE SPI1* DMA_PRIORITY TIM3* TIM2* SPI1*