HAL_ChibiOS: added uartH
This commit is contained in:
parent
bee487e9da
commit
0075b96f3a
@ -43,6 +43,7 @@ static HAL_UARTD_DRIVER;
|
|||||||
static HAL_UARTE_DRIVER;
|
static HAL_UARTE_DRIVER;
|
||||||
static HAL_UARTF_DRIVER;
|
static HAL_UARTF_DRIVER;
|
||||||
static HAL_UARTG_DRIVER;
|
static HAL_UARTG_DRIVER;
|
||||||
|
static HAL_UARTH_DRIVER;
|
||||||
#else
|
#else
|
||||||
static Empty::UARTDriver uartADriver;
|
static Empty::UARTDriver uartADriver;
|
||||||
static Empty::UARTDriver uartBDriver;
|
static Empty::UARTDriver uartBDriver;
|
||||||
@ -51,6 +52,7 @@ static Empty::UARTDriver uartDDriver;
|
|||||||
static Empty::UARTDriver uartEDriver;
|
static Empty::UARTDriver uartEDriver;
|
||||||
static Empty::UARTDriver uartFDriver;
|
static Empty::UARTDriver uartFDriver;
|
||||||
static Empty::UARTDriver uartGDriver;
|
static Empty::UARTDriver uartGDriver;
|
||||||
|
static Empty::UARTDriver uartHDriver;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAL_USE_I2C == TRUE
|
#if HAL_USE_I2C == TRUE
|
||||||
@ -111,6 +113,7 @@ HAL_ChibiOS::HAL_ChibiOS() :
|
|||||||
&uartEDriver,
|
&uartEDriver,
|
||||||
&uartFDriver,
|
&uartFDriver,
|
||||||
&uartGDriver,
|
&uartGDriver,
|
||||||
|
&uartHDriver,
|
||||||
&i2cDeviceManager,
|
&i2cDeviceManager,
|
||||||
&spiDeviceManager,
|
&spiDeviceManager,
|
||||||
&analogIn,
|
&analogIn,
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
#define RX_BOUNCE_BUFSIZE 128U
|
#define RX_BOUNCE_BUFSIZE 128U
|
||||||
#define TX_BOUNCE_BUFSIZE 64U
|
#define TX_BOUNCE_BUFSIZE 64U
|
||||||
|
|
||||||
// enough for uartA to uartG, plus IOMCU
|
// enough for uartA to uartH, plus IOMCU
|
||||||
#define UART_MAX_DRIVERS 8
|
#define UART_MAX_DRIVERS 9
|
||||||
|
|
||||||
class ChibiOS::UARTDriver : public AP_HAL::UARTDriver {
|
class ChibiOS::UARTDriver : public AP_HAL::UARTDriver {
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user