mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
HAL_ChibiOS: support uartG
This commit is contained in:
parent
d1fcf2bab6
commit
0a5d287326
@ -35,6 +35,7 @@ static HAL_UARTC_DRIVER;
|
||||
static HAL_UARTD_DRIVER;
|
||||
static HAL_UARTE_DRIVER;
|
||||
static HAL_UARTF_DRIVER;
|
||||
static HAL_UARTG_DRIVER;
|
||||
#else
|
||||
static Empty::UARTDriver uartADriver;
|
||||
static Empty::UARTDriver uartBDriver;
|
||||
@ -42,6 +43,7 @@ static Empty::UARTDriver uartCDriver;
|
||||
static Empty::UARTDriver uartDDriver;
|
||||
static Empty::UARTDriver uartEDriver;
|
||||
static Empty::UARTDriver uartFDriver;
|
||||
static Empty::UARTDriver uartGDriver;
|
||||
#endif
|
||||
|
||||
#if HAL_USE_I2C == TRUE
|
||||
@ -95,6 +97,7 @@ HAL_ChibiOS::HAL_ChibiOS() :
|
||||
&uartDDriver,
|
||||
&uartEDriver,
|
||||
&uartFDriver,
|
||||
&uartGDriver,
|
||||
&i2cDeviceManager,
|
||||
&spiDeviceManager,
|
||||
&analogIn,
|
||||
|
@ -25,7 +25,8 @@
|
||||
#define RX_BOUNCE_BUFSIZE 128U
|
||||
#define TX_BOUNCE_BUFSIZE 64U
|
||||
|
||||
#define UART_MAX_DRIVERS 7
|
||||
// enough for uartA to uartG, plus IOMCU
|
||||
#define UART_MAX_DRIVERS 8
|
||||
|
||||
class ChibiOS::UARTDriver : public AP_HAL::UARTDriver {
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user