X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fbbb_pin_defines.h;h=2eb2d08bc4f94427c0d96c5460d24b52b4db45b3;hb=6251ae03b906a9603e8d8ed9ac74b8339a57ca7b;hp=a7aa932d8b95f3ac8793021fd55583a8c532e9a4;hpb=e5a93abad7700d26b8d7363103593491a3f0a212;p=matches%2FMCTX3420.git diff --git a/server/bbb_pin_defines.h b/server/bbb_pin_defines.h index a7aa932..2eb2d08 100644 --- a/server/bbb_pin_defines.h +++ b/server/bbb_pin_defines.h @@ -114,19 +114,18 @@ #define GPIO2_31 95 #define GPIO2_32 96 -/* Luts */ +/** Export path **/ +#define GPIO_DEVICE_PATH "/sys/class/gpio" + /** Number of useable GPIO pins **/ -#define GPIO_NUM_PINS 44 +#define GPIO_NUM_PINS 43 /** The max usable GPIO number **/ -#define GPIO_MAX_NUMBER 117 +#define GPIO_MAX_NUMBER 115 -extern const unsigned char g_pin_real_to_gpio[BBB_PIN_COUNT+1]; +/* Luts */ extern const unsigned char g_pin_gpio_to_index[GPIO_MAX_NUMBER+1]; extern const unsigned char g_pin_index_to_gpio[GPIO_NUM_PINS]; -/** Export path **/ -#define GPIO_DEVICE_PATH "/sys/class/gpio" - #define ADC_BITS 12 #define ADC_DIGITS 5 #define ADC0 0 @@ -156,15 +155,9 @@ extern const unsigned char g_pin_index_to_gpio[GPIO_NUM_PINS]; /** Number of PWM pins **/ #define PWM_NUM_PINS 8 -/** Number of PWM pins which are guaranteed not to interfere with one another **/ -#define PWM_NUM_SAFE_PINS 5 - /** Path to PWM sysfs **/ #define PWM_DEVICE_PATH "/sys/class/pwm" -/** Maps internal pin number to safe 'pwmX' number **/ -extern const unsigned char g_pin_safe_pwm[PWM_NUM_SAFE_PINS]; - #endif //_BBB_PIN_DEFINES_H