ardupilot/libraries/AP_HAL/Storage.h
Lucas De Marchi 6b1c5e6f72 AP_HAL: add init() method without argument
The argument in init() is not used by any implementation. Add a second
method without it so the HAL implementation can used it instead. Later
the unused method will be removed.
2015-12-02 14:21:58 -02:00

18 lines
384 B
C++

#ifndef __AP_HAL_STORAGE_H__
#define __AP_HAL_STORAGE_H__
#include <stdint.h>
#include "AP_HAL_Namespace.h"
class AP_HAL::Storage {
public:
virtual void init(void *) { }
virtual void init() { }
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;
};
#endif // __AP_HAL_STORAGE_H__