From 2e29f2664b30e76b281d2d139a1b6d6d9a0d4b38 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 14 Dec 2022 20:33:07 +0000 Subject: [PATCH] AP_HAL_ChibiOS: add UART baudrate accessor --- libraries/AP_HAL_ChibiOS/UARTDriver.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/UARTDriver.h b/libraries/AP_HAL_ChibiOS/UARTDriver.h index a770d982ec..4bf86f2bb7 100644 --- a/libraries/AP_HAL_ChibiOS/UARTDriver.h +++ b/libraries/AP_HAL_ChibiOS/UARTDriver.h @@ -141,6 +141,8 @@ public: return _baudrate/(9*1024); } + uint32_t get_baud_rate() const override { return _baudrate; } + #if HAL_UART_STATS_ENABLED // request information on uart I/O for one uart void uart_info(ExpandingString &str) override;