HAL_ChibiOS: implement flash driver

This commit is contained in:
Andrew Tridgell 2019-03-26 11:13:51 +11:00
parent 65d051cbc9
commit 36f7116054
3 changed files with 4 additions and 0 deletions

View File

@ -26,4 +26,5 @@ namespace ChibiOS {
class SoftSigReader;
class SoftSigReaderInt;
class CANManager;
class Flash;
}

View File

@ -14,3 +14,4 @@
#include "RCInput.h"
#include "RCOutput.h"
#include "I2CDevice.h"
#include "Flash.h"

View File

@ -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
)
{}