ardupilot/libraries/AP_HAL_Linux/Util_RPI.h
Lucas De Marchi fc2a1d27b4 AP_HAL_Linux: fix build for raspilot after Util change
Make sure raspilot also builds after making the Util class common for
RPI-based boards.
2015-09-24 15:31:32 +10:00

23 lines
418 B
C++

#pragma once
#include "Util.h"
class Linux::LinuxUtilRPI : public Linux::LinuxUtil {
public:
LinuxUtilRPI();
static LinuxUtilRPI *from(AP_HAL::Util *util) {
return static_cast<LinuxUtilRPI*>(util);
}
/* return the Raspberry Pi version */
int get_rpi_version() const;
protected:
// Called in the constructor once
int _check_rpi_version();
private:
int _rpi_version = 0;
};