From a12de9efb3017487e375dfc968621432b4c910a6 Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Fri, 17 Mar 2023 13:48:08 -0500 Subject: [PATCH] AP_HAL_ChibiOS:improve MambaF405MINI defaults --- .../hwdef/MambaF405-2022/defaults.parm | 14 +++++++++++++- .../AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat | 6 +++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm index 9197bfd3fe..5078224bc5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm @@ -2,4 +2,16 @@ SERVO7_FUNCTION 120 NTF_LED_TYPES 257 # Default VTX power to on -RELAY_DEFAULT 1 \ No newline at end of file +RELAY_DEFAULT 1 +# UART1 is RX input +SERIAL1_PROTOCOL 23 +# UART2 is GPS +SERIAL2_PROTOCOL 5 +# UART3 is USER +SERIAL3_PROTOCOL -1 +#Onboard OSD enable +OSD_TYPE 1 +# UART4 is USER +SERIAL4_PROTOCOL -1 +# UART6 is ESC Telem +SERIAL6_PROTOCOL 16 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat index 08fcba0e54..a7f9755ec1 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat @@ -2,7 +2,7 @@ include ../MambaF405US-I2C/hwdef.dat -undef PA9 PA8 PC9 PC8 PB3 PB11 PC5 +undef PA9 PA8 PC9 PC8 PB3 PB11 PC5 PB7 PB6 PA9 TIM1_CH2 TIM1 PWM(1) GPIO(50) BIDIR PA8 TIM1_CH1 TIM1 PWM(2) GPIO(51) @@ -20,6 +20,10 @@ define RELAY2_PIN_DEFAULT 81 PB11 USART3_RX USART3 NODMA +#UART1 Serial RX only +PB7 USART1_RX USART1 +PB6 USART1_TX USART1 + # MambaF405-2022B board SPIDEV icm42688 SPI1 DEVID2 MPU6000_CS MODE3 1*MHZ 8*MHZ