ardupilot/libraries/AP_HAL_Linux/Util_RPI.h
Lucas De Marchi 2ac96b942c AP_HAL_Linux: remove prefix from AP_HAL_Linux classes
We have already a Linux namespace, so there's no need to prefix Linux on
all names.
2015-10-21 10:11:19 +11:00

23 lines
393 B
C++

#pragma once
#include "Util.h"
class Linux::UtilRPI : public Linux::Util {
public:
UtilRPI();
static UtilRPI *from(AP_HAL::Util *util) {
return static_cast<UtilRPI*>(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;
};