mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
HAL_PX4: added empty flash driver
This commit is contained in:
parent
ca37b06af2
commit
3680d8f1fa
@ -100,6 +100,8 @@ static PX4UARTDriver uartDDriver(UARTD_DEFAULT_DEVICE, "APM_uartD");
|
|||||||
static PX4UARTDriver uartEDriver(UARTE_DEFAULT_DEVICE, "APM_uartE");
|
static PX4UARTDriver uartEDriver(UARTE_DEFAULT_DEVICE, "APM_uartE");
|
||||||
static PX4UARTDriver uartFDriver(UARTF_DEFAULT_DEVICE, "APM_uartF");
|
static PX4UARTDriver uartFDriver(UARTF_DEFAULT_DEVICE, "APM_uartF");
|
||||||
|
|
||||||
|
static Empty::Flash flashDriver;
|
||||||
|
|
||||||
HAL_PX4::HAL_PX4() :
|
HAL_PX4::HAL_PX4() :
|
||||||
AP_HAL::HAL(
|
AP_HAL::HAL(
|
||||||
&uartADriver, /* uartA */
|
&uartADriver, /* uartA */
|
||||||
@ -120,6 +122,7 @@ HAL_PX4::HAL_PX4() :
|
|||||||
&schedulerInstance, /* scheduler */
|
&schedulerInstance, /* scheduler */
|
||||||
&utilInstance, /* util */
|
&utilInstance, /* util */
|
||||||
nullptr, /* no onboard optical flow */
|
nullptr, /* no onboard optical flow */
|
||||||
|
&flashDriver,
|
||||||
nullptr) /* CAN */
|
nullptr) /* CAN */
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user