ardupilot/libraries/AP_HAL_Empty/Flash.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
536 B
C
Raw Permalink Normal View History

2019-03-25 21:14:05 -03:00
#pragma once
#include "AP_HAL_Empty.h"
class Empty::Flash : public AP_HAL::Flash {
public:
uint32_t getpageaddr(uint32_t page) override { return 0; }
uint32_t getpagesize(uint32_t page) override { return 0; }
uint32_t getnumpages(void) override { return 0; }
bool erasepage(uint32_t page) override { return false; }
bool write(uint32_t addr, const void *buf, uint32_t count) override { return false; }
void keep_unlocked(bool set) override {}
bool ispageerased(uint32_t page) override { return false; }
};