X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fbbb_pin_defines.c;h=aaad714360454e71c83f2e57b84641cd29eb1c7a;hb=6bc03ca2d8356d91f05ae65122caa07f9a1b6181;hp=df5b5c0409826cd62cbd55daead3de224bd5cf97;hpb=ab00d4e4fdd18f65ec9a73725b72d16f5bcc28b9;p=matches%2FMCTX3420.git diff --git a/server/bbb_pin_defines.c b/server/bbb_pin_defines.c index df5b5c0..aaad714 100644 --- a/server/bbb_pin_defines.c +++ b/server/bbb_pin_defines.c @@ -1,5 +1,7 @@ #include "bbb_pin_defines.h" +/* Luts and stuff. Yay magic numbers **/ + /** * A lookup table from the actual pin number to GPIO number. * e.g P8_13 is g_pin_real_to_gpio[0*46+13] = g_pin_real_to_gpio[13] @@ -14,7 +16,7 @@ const unsigned char g_pin_real_to_gpio[BBB_PIN_COUNT+1] = { 88, 87, 89, 10, 11, 9, 81, 8, 80, 78, 79, 76, 77, 74, 75, 72, 73, 70, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 60, 31, 0, 48, 0, 5, 4, 0, 0, 0, 0, 49, - 15, 117, 14, 115, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, + 15, 0, 14, 115, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; @@ -31,7 +33,7 @@ const unsigned char g_pin_gpio_to_index[GPIO_MAX_NUMBER+1] = { 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 128, 128, 128, 128, 37, 38, 39, 40, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, - 41, 128, 128, 42, 128, 43 + 41, 128, 128, 42, 128, 128 }; /** @@ -41,7 +43,7 @@ const unsigned char g_pin_index_to_gpio[GPIO_NUM_PINS] = { 4, 5, 8, 9, 10, 11, 14, 15, 26, 27, 30, 31, 44, 45, 46, 47, 48, 49, 60, 61, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 112, - 115, 117 + 115 }; /** @@ -50,4 +52,4 @@ const unsigned char g_pin_index_to_gpio[GPIO_NUM_PINS] = { */ const unsigned char g_pin_safe_pwm[PWM_NUM_SAFE_PINS] = { 0, 2, 4, 6, 7 -}; \ No newline at end of file +}; //blergh \ No newline at end of file