mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Empty: eliminate legacy UART ordering/references
Fourth serial port (SERIAL2) added purely for consistency.
This commit is contained in:
parent
2aa4ee8ba7
commit
20ee5b2d37
|
@ -9,9 +9,10 @@
|
|||
|
||||
using namespace Empty;
|
||||
|
||||
static UARTDriver uartADriver;
|
||||
static UARTDriver uartBDriver;
|
||||
static UARTDriver uartCDriver;
|
||||
static UARTDriver serial0Driver;
|
||||
static UARTDriver serial1Driver;
|
||||
static UARTDriver serial2Driver;
|
||||
static UARTDriver serial3Driver;
|
||||
static SPIDeviceManager spiDeviceManager;
|
||||
static AnalogIn analogIn;
|
||||
static Storage storageDriver;
|
||||
|
@ -25,20 +26,20 @@ static Flash flashDriver;
|
|||
|
||||
HAL_Empty::HAL_Empty() :
|
||||
AP_HAL::HAL(
|
||||
&uartADriver,
|
||||
&uartCDriver, // ordering captures the historical use of uartB as SERIAL3
|
||||
nullptr, /* no uartD */
|
||||
&uartBDriver,
|
||||
nullptr, /* no uartE */
|
||||
nullptr, /* no uartF */
|
||||
nullptr, /* no uartG */
|
||||
nullptr, /* no uartH */
|
||||
nullptr, /* no uartI */
|
||||
nullptr, /* no uartJ */
|
||||
&serial0Driver,
|
||||
&serial1Driver,
|
||||
&serial2Driver,
|
||||
&serial3Driver,
|
||||
nullptr, /* no SERIAL4 */
|
||||
nullptr, /* no SERIAL5 */
|
||||
nullptr, /* no SERIAL6 */
|
||||
nullptr, /* no SERIAL7 */
|
||||
nullptr, /* no SERIAL8 */
|
||||
nullptr, /* no SERIAL9 */
|
||||
&spiDeviceManager,
|
||||
&analogIn,
|
||||
&storageDriver,
|
||||
&uartADriver,
|
||||
&serial0Driver,
|
||||
&gpioDriver,
|
||||
&rcinDriver,
|
||||
&rcoutDriver,
|
||||
|
|
Loading…
Reference in New Issue