AP_HAL_ChibiOS: remove unused pin-related defines

Unused
This commit is contained in:
Peter Barker 2021-08-14 15:32:28 +10:00 committed by Andrew Tridgell
parent b9099f7b88
commit e7f1a273e5

View File

@ -48,9 +48,6 @@ static struct gpio_entry {
uint16_t isr_quota;
} _gpio_tab[] = HAL_GPIO_PINS;
#define NUM_PINS ARRAY_SIZE(_gpio_tab)
#define PIN_ENABLED(pin) ((pin)<NUM_PINS && _gpio_tab[pin].enabled)
/*
map a user pin number to a GPIO table entry
*/