HAL_PX4: added empty flash driver

This commit is contained in:
Andrew Tridgell 2019-04-22 15:58:01 +10:00
parent ca37b06af2
commit 3680d8f1fa
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 uartFDriver(UARTF_DEFAULT_DEVICE, "APM_uartF");
static Empty::Flash flashDriver;
HAL_PX4::HAL_PX4() :
AP_HAL::HAL(
&uartADriver, /* uartA */
@ -120,6 +122,7 @@ HAL_PX4::HAL_PX4() :
&schedulerInstance, /* scheduler */
&utilInstance, /* util */
nullptr, /* no onboard optical flow */
&flashDriver,
nullptr) /* CAN */
{}