From 12d5602926dd7dfa4892ba9587d9d9e02493d767 Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Sun, 10 May 2020 17:40:51 -0500 Subject: [PATCH] AP_HAL_ChibiOS: Add ability to use UART3 and UART4 in bd alt config 4 --- libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat index a323a8f112..3e56caad28 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat @@ -51,9 +51,11 @@ PA7 SPI1_MOSI SPI1 PB10 I2C2_SCL I2C2 PULLUP PB11 I2C2_SDA I2C2 PULLUP -# use I2C pins as USART3 (SERIAL2) in BRD_ALT_CONFIG=1 +# use I2C pins as USART3 (SERIAL2) in BRD_ALT_CONFIG=1 & 4 PB10 USART3_TX USART3 ALT(1) PB11 USART3_RX USART3 ALT(1) +PB10 USART3_TX USART3 ALT(4) +PB11 USART3_RX USART3 ALT(4) PB15 SPI2_MOSI SPI2 PB14 SPI2_MISO SPI2 @@ -69,9 +71,11 @@ PC7 USART6_RX USART6 # UART4 TX available as an alternative config on PA0 (RSSI pad) with BRD_ALT_CONFIG=2 PA0 UART4_TX UART4 ALT(2) -# full UART4 also available as alt config on PA0 (RSSI pad) and PA1 (PWM output chan 5) with BRD_ALT_CONFIG=3 +# full UART4 also available as alt config on PA0 (RSSI pad) and PA1 (PWM output chan 5) with BRD_ALT_CONFIG=3 & 4 PA0 UART4_TX UART4 ALT(3) PA1 UART4_RX UART4 ALT(3) +PA0 UART4_TX UART4 ALT(4) +PA1 UART4_RX UART4 ALT(4) PA13 JTMS-SWDIO SWD PA14 JTCK-SWCLK SWD