/** GPIO0 defines **/
#define GPIO0_1 1
-#define GPIO0_2 2
-//#define GPIO0_3 3 // Used for PWM
-//#define GPIO0_4 4 // Used for PWM
+#define GPIO0_2 2 // Used for PWM
+#define GPIO0_3 3 // Used for PWM
+#define GPIO0_4 4
#define GPIO0_5 5
#define GPIO0_6 6
#define GPIO0_7 7
#define GPIO2_31 95
#define GPIO2_32 96
-/** Number of GPIO pins **/
-#define GPIO_NUM_PINS 97
+/** Number of useable GPIO pins **/
+#define GPIO_NUM_PINS 50
+
+/* Luts */
+#define GPIO_LUT_SIZE 93
+#define GPIO_INDEX_SIZE 128
+extern const unsigned char g_pin_to_gpio[GPIO_LUT_SIZE];
+extern const unsigned char g_gpio_to_index[GPIO_INDEX_SIZE];
+extern const unsigned char g_index_to_gpio[GPIO_NUM_PINS];
/** Export path **/
#define GPIO_DEVICE_PATH "/sys/class/gpio"
#define PWM_DEVICE_PATH "/sys/class/pwm"
-
#endif //_BBB_PIN_DEFINES_H