ardupilot/libraries/AP_HAL/Storage.h
Andrew Tridgell 472ba5bde7 AP_HAL: make _timer_tick() in Storage available in all HALs
this makes using the Empty::Storage easier
2018-02-07 20:33:45 +11:00

13 lines
311 B
C++

#pragma once
#include <stdint.h>
#include "AP_HAL_Namespace.h"
class AP_HAL::Storage {
public:
virtual void init() = 0;
virtual void read_block(void *dst, uint16_t src, size_t n) = 0;
virtual void write_block(uint16_t dst, const void* src, size_t n) = 0;
virtual void _timer_tick(void) {};
};