X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fbbb_pin_defines.c;h=d558993f83fcce16140483c649ac898678fa5eca;hb=7206c183756185eeea99afec12f11506810a0a33;hp=bfa39cc3e2f3a3a2e033b5ef2a974fccd7eb5c83;hpb=895c2f8fd6f66d858a091dc57cfddc45bfc27489;p=matches%2FMCTX3420.git diff --git a/server/bbb_pin_defines.c b/server/bbb_pin_defines.c index bfa39cc..d558993 100644 --- a/server/bbb_pin_defines.c +++ b/server/bbb_pin_defines.c @@ -10,7 +10,6 @@ * Where the returned value is 0, there is no GPIO pin * at that location. */ - const unsigned char g_pin_real_to_gpio[BBB_PIN_COUNT+1] = { 0, 0, 0, 0, 0, 0, 0, 66, 67, 69, 68, 45, 44, 0, 26, 47, 46, 27, 65, 0, 0, 0, 0, 0, 0, 0, 61, 86, @@ -34,13 +33,13 @@ 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, 128 + 41, 128, 128, 42 }; /** * Maps an index in g_gpio to the corresponding GPIO number. */ -const unsigned char g_gpio_lut[GPIO_NUM_PINS] = { +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,