MAX_GPIO_PIN_NUMBER
if (pin > MAX_GPIO_PIN_NUMBER)
if (pin_num > MAX_GPIO_PIN_NUMBER)
if ((new_level > 1) || (pin_num > MAX_GPIO_PIN_NUMBER))