mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
|
|
#include <AP_HAL.h>
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_EMPTY
|
|
|
|
#include "HAL_Empty_Class.h"
|
|
#include "AP_HAL_Empty_Private.h"
|
|
|
|
using namespace Empty;
|
|
|
|
static EmptyUARTDriver uartADriver;
|
|
static EmptyUARTDriver uartBDriver;
|
|
static EmptyUARTDriver uartCDriver;
|
|
static EmptyI2CDriver i2cDriver;
|
|
static EmptySPIDeviceManager spiDeviceManager;
|
|
static EmptyAnalogIn analogIn;
|
|
static EmptyStorage storageDriver;
|
|
static EmptyGPIO gpioDriver;
|
|
static EmptyRCInput rcinDriver;
|
|
static EmptyRCOutput rcoutDriver;
|
|
static EmptyScheduler scheduler;
|
|
|
|
HAL_Empty::HAL_Empty() :
|
|
AP_HAL::HAL(
|
|
&uartADriver,
|
|
&uartBDriver,
|
|
&uartCDriver,
|
|
&i2cDriver,
|
|
&spiDeviceManager,
|
|
&analogIn,
|
|
&storageDriver,
|
|
&gpioDriver,
|
|
&rcinDriver,
|
|
&rcoutDriver,
|
|
&scheduler ),
|
|
_priv(new EmptyPrivateMember(123))
|
|
{}
|
|
|
|
void HAL_Empty::init(int argc, const char * argv[]) const {
|
|
uartA->init();
|
|
_priv->init();
|
|
}
|
|
|
|
const HAL_Empty AP_HAL_Empty;
|
|
|
|
#endif // CONFIG_HAL_BOARD == HAL_BOARD_EMPTY
|
|
|