2015-09-23 12:52:07 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Util.h"
|
|
|
|
|
2015-10-20 18:13:25 -03:00
|
|
|
class Linux::UtilRPI : public Linux::Util {
|
2015-09-23 12:52:07 -03:00
|
|
|
public:
|
2015-10-20 18:13:25 -03:00
|
|
|
UtilRPI();
|
2015-09-23 22:49:38 -03:00
|
|
|
|
2015-10-20 18:13:25 -03:00
|
|
|
static UtilRPI *from(AP_HAL::Util *util) {
|
|
|
|
return static_cast<UtilRPI*>(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;
|
|
|
|
};
|