X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fbbb_pin_defines.h;h=844b4067b69125d1517511d1c2e9b8fcb11c9e2d;hb=38c8c8278b4dc1515ad1bf947142170874be5388;hp=661f9693c29d597bf126c1f9f944fdfcca3cd241;hpb=334c0f768757075c94f4080f3275fc6cd006e6f7;p=matches%2FMCTX3420.git diff --git a/server/bbb_pin_defines.h b/server/bbb_pin_defines.h index 661f969..844b406 100644 --- a/server/bbb_pin_defines.h +++ b/server/bbb_pin_defines.h @@ -114,6 +114,13 @@ /** 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" @@ -148,7 +155,6 @@ #define PWM_DEVICE_PATH "/sys/class/pwm" - #endif //_BBB_PIN_DEFINES_H