ardupilot/libraries/AP_HAL_Linux/Util_RPI.h
Lucas De Marchi f36e8d9c05 AP_HAL_Linux: remove AP_HAL_Linux_Namespace header
This centralized namespace header encourages centralizing things on
umbrella headers that are a pain to maintain. Force each part of
AP_HAL_Linux to include what is used.

While at it, do some whitespace cleanups and minor changes to adhere to
coding style.
2016-07-29 20:25:03 -03:00

27 lines
401 B
C++

#pragma once
#include "Util.h"
namespace Linux {
class UtilRPI : public 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;
};
}