RPi: Fix GPIO Layout detection (#895) (#906)

This commit is contained in:
Marcelo Aquino
2017-08-12 08:58:02 -03:00
committed by GitHub
parent d17b9dd6f1
commit d291a3661b
3 changed files with 80 additions and 21 deletions
+7 -2
View File
@@ -68,8 +68,13 @@ public:
static int physToGPIO(uint8_t physPin, uint8_t *gpio);
private:
static const int *pin_to_gpio; //!< @brief Pointer to array of GPIO pins numbers.
static const char *type; //!< @brief Raspberry Pi type.
static const int *phys_to_gpio; //!< @brief Pointer to array of GPIO pins numbers.
/**
* @brief Get the gpio layout.
*
* @return The gpio layout number.
*/
static int rpiGpioLayout(void);
};
extern RPiClass RPi;