Flash.h 536 B

1234567891011121314
  1. #pragma once
  2. #include "AP_HAL_Empty.h"
  3. class Empty::Flash : public AP_HAL::Flash {
  4. public:
  5. uint32_t getpageaddr(uint32_t page) override { return 0; }
  6. uint32_t getpagesize(uint32_t page) override { return 0; }
  7. uint32_t getnumpages(void) override { return 0; }
  8. bool erasepage(uint32_t page) override { return false; }
  9. bool write(uint32_t addr, const void *buf, uint32_t count) override { return false; }
  10. void keep_unlocked(bool set) override {}
  11. bool ispageerased(uint32_t page) override { return false; }
  12. };