You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
418 B
23 lines
418 B
10 years ago
|
#pragma once
|
||
|
|
||
|
#include "Util.h"
|
||
|
|
||
10 years ago
|
class Linux::LinuxUtilRPI : public Linux::LinuxUtil {
|
||
10 years ago
|
public:
|
||
10 years ago
|
LinuxUtilRPI();
|
||
10 years ago
|
|
||
10 years ago
|
static LinuxUtilRPI *from(AP_HAL::Util *util) {
|
||
|
return static_cast<LinuxUtilRPI*>(util);
|
||
10 years ago
|
}
|
||
|
|
||
10 years ago
|
/* 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;
|
||
|
};
|