Browse Source

HAL_ChibiOS: implement flash driver

master
Andrew Tridgell 6 years ago
parent
commit
36f7116054
  1. 1
      libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Namespace.h
  2. 1
      libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h
  3. 2
      libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp

1
libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Namespace.h

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

1
libraries/AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h

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

2
libraries/AP_HAL_ChibiOS/HAL_ChibiOS_Class.cpp

@ -82,6 +82,7 @@ static Empty::RCOutput rcoutDriver;
static ChibiOS::Scheduler schedulerInstance; static ChibiOS::Scheduler schedulerInstance;
static ChibiOS::Util utilInstance; static ChibiOS::Util utilInstance;
static Empty::OpticalFlow opticalFlowDriver; static Empty::OpticalFlow opticalFlowDriver;
static ChibiOS::Flash flashDriver;
#if HAL_WITH_IO_MCU #if HAL_WITH_IO_MCU
@ -110,6 +111,7 @@ HAL_ChibiOS::HAL_ChibiOS() :
&schedulerInstance, &schedulerInstance,
&utilInstance, &utilInstance,
&opticalFlowDriver, &opticalFlowDriver,
&flashDriver,
nullptr nullptr
) )
{} {}

Loading…
Cancel
Save