mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
DataFlash: don't take a delay_cb
This commit is contained in:
parent
0e5ff36c6c
commit
ef1db1a3fc
@ -36,7 +36,7 @@ private:
|
||||
virtual uint8_t BufferRead (uint8_t BufferNum, uint16_t IntPageAdr) = 0;
|
||||
virtual void PageErase(uint16_t PageAdr) = 0;
|
||||
virtual void BlockErase(uint16_t BlockAdr) = 0;
|
||||
virtual void ChipErase(void (*delay_cb)(unsigned long)) = 0;
|
||||
virtual void ChipErase() = 0;
|
||||
|
||||
// internal high level functions
|
||||
int16_t find_last_page(void);
|
||||
|
@ -21,7 +21,7 @@ private:
|
||||
uint16_t PageSize();
|
||||
void PageErase (uint16_t PageAdr);
|
||||
void BlockErase (uint16_t BlockAdr);
|
||||
void ChipErase(void (*delay_cb)(unsigned long));
|
||||
void ChipErase();
|
||||
|
||||
AP_HAL::SPIDeviceDriver *_spi;
|
||||
AP_HAL::Semaphore *_spi_sem;
|
||||
|
@ -4,7 +4,7 @@
|
||||
#ifndef __DATAFLASH_APM2_H__
|
||||
#define __DATAFLASH_APM2_H__
|
||||
|
||||
#include <AP_Semaphore.h>
|
||||
#include <AP_HAL.h>
|
||||
#include "DataFlash.h"
|
||||
|
||||
class DataFlash_APM2 : public DataFlash_Class
|
||||
@ -22,7 +22,7 @@ private:
|
||||
|
||||
void PageErase (uint16_t PageAdr);
|
||||
void BlockErase (uint16_t BlockAdr);
|
||||
void ChipErase(void (*delay_cb)(unsigned long));
|
||||
void ChipErase();
|
||||
|
||||
AP_HAL::SPIDeviceDriver* _spi;
|
||||
AP_HAL::Semaphore* _spi_sem;
|
||||
|
Loading…
Reference in New Issue
Block a user