From 2dae778103e9439a83c6c87c7d3a3e5d10bfdf41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=9F=E6=99=93?= Date: Wed, 30 Mar 2022 01:06:30 +0000 Subject: [PATCH] AP_HAL_ChibiOS: CUAV-Nora: add usart3 support --- libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat index 7a4d48d169..bfb42fe0cb 100755 --- a/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CUAV-Nora/hwdef.dat @@ -21,7 +21,7 @@ STM32_ST_USE_TIMER 2 FLASH_RESERVE_START_KB 128 # order of UARTs (and USB) -SERIAL_ORDER OTG1 USART2 USART6 USART1 UART4 UART8 UART7 OTG2 +SERIAL_ORDER OTG1 USART2 USART6 USART1 UART4 UART8 UART7 USART3 OTG2 # default the 2nd interface to MAVLink2 until MissionPlanner updates drivers define HAL_OTG2_PROTOCOL SerialProtocol_MAVLink2 @@ -157,6 +157,10 @@ PE8 UART7_TX UART7 NODMA PE0 UART8_RX UART8 PE1 UART8_TX UART8 +# USART3 +PD8 USART3_TX USART3 NODMA +PD9 USART3_RX USART3 NODMA + # PWM AUX channels PH10 TIM5_CH1 TIM5 PWM(1) GPIO(50) PH11 TIM5_CH2 TIM5 PWM(2) GPIO(51)