TI_GPIO_NPINS
gpio_pin_t sc_pins[TI_GPIO_NPINS];
bool sc_pinout[TI_GPIO_NPINS];
struct ti_gpio_intr sc_intr[TI_GPIO_NPINS];
if (pin < 0 || pin >= TI_GPIO_NPINS)