HAL_PX4: added empty flash driver

This commit is contained in:
Andrew Tridgell 2019-04-22 15:58:01 +10:00 committed by Randy Mackay
parent c1000cfe2a
commit 06d796a2c8
1 changed files with 3 additions and 0 deletions

View File

@ -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 */
{} {}