HAL_ChibiOS: support uartG

This commit is contained in:
Andrew Tridgell 2018-06-27 21:34:23 +10:00
parent d1fcf2bab6
commit 0a5d287326
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -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: