Restructure RPi files (#827)

- Restructure SPi files for linux and RPi
- Update RPi revision detection (#826)
This commit is contained in:
Marcelo Aquino
2017-04-19 22:03:10 +02:00
committed by Henrik Ekblad
parent 26c237adad
commit 4c31e22d6f
19 changed files with 345 additions and 505 deletions
+9 -9
View File
@@ -31,22 +31,22 @@
/**
* @brief GPIO class
*/
class GPIO
class GPIOClass
{
public:
/**
* @brief GPIO constructor.
* @brief GPIOClass constructor.
*/
GPIO();
GPIOClass();
/**
* @brief GPIO copy constructor.
* @brief GPIOClass copy constructor.
*/
GPIO(const GPIO& other);
GPIOClass(const GPIOClass& other);
/**
* @brief GPIO destructor.
* @brief GPIOClass destructor.
*/
~GPIO();
~GPIOClass();
/**
* @brief Configures the specified pin to behave either as an input or an output.
*
@@ -79,13 +79,13 @@ public:
* @brief Overloaded assign operator.
*
*/
GPIO& operator=(const GPIO& other);
GPIOClass& operator=(const GPIOClass& other);
private:
int lastPinNum; //!< @brief Highest pin number supported.
uint8_t *exportedPins; //!< @brief Array with information of which pins were exported.
};
extern GPIO gpio;
extern GPIOClass GPIO;
#endif