2015-09-23 12:52:07 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Util.h"
|
|
|
|
|
2015-09-23 22:53:42 -03:00
|
|
|
class Linux::LinuxUtilRPI : public Linux::LinuxUtil {
|
2015-09-23 12:52:07 -03:00
|
|
|
public:
|
2015-09-23 22:53:42 -03:00
|
|
|
LinuxUtilRPI();
|
2015-09-23 22:49:38 -03:00
|
|
|
|
2015-09-23 22:53:42 -03:00
|
|
|
static LinuxUtilRPI *from(AP_HAL::Util *util) {
|
|
|
|
return static_cast<LinuxUtilRPI*>(util);
|
2015-09-23 22:49:38 -03:00
|
|
|
}
|
|
|
|
|
2015-09-23 12:52:07 -03:00
|
|
|
/* 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;
|
|
|
|
};
|