diff --git a/libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Namespace.h b/libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Namespace.h index f43d4a3319..c320b7edc1 100644 --- a/libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Namespace.h +++ b/libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Namespace.h @@ -26,4 +26,5 @@ namespace ChibiOS { class SoftSigReader; class SoftSigReaderInt; class CANManager; + class Flash; } diff --git a/libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h b/libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h index b9a770f5d0..2feea70f8f 100644 --- a/libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h +++ b/libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h @@ -14,3 +14,4 @@ #include "RCInput.h" #include "RCOutput.h" #include "I2CDevice.h" +#include "Flash.h" diff --git a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp index c7d4568eab..a1f94ed189 100644 --- a/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp +++ b/libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp @@ -82,6 +82,7 @@ static Empty::RCOutput rcoutDriver; static ChibiOS::Scheduler schedulerInstance; static ChibiOS::Util utilInstance; static Empty::OpticalFlow opticalFlowDriver; +static ChibiOS::Flash flashDriver; #if HAL_WITH_IO_MCU @@ -110,6 +111,7 @@ HAL_ChibiOS::HAL_ChibiOS() : &schedulerInstance, &utilInstance, &opticalFlowDriver, + &flashDriver, nullptr ) {}