semi update lut stuff
[matches/MCTX3420.git] / server / bbb_pin_defines.h
index 661f969..844b406 100644 (file)
 /** 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
 
 

UCC git Repository :: git.ucc.asn.au