/* Disables callback. 
Disables the callback function registered by the usart_register_callback. The callback function will not be called from the interrupt handler. */
void gpio_disable_callback(uint8_t gpio_pin)
/* Disables callback. 
Disables the callback function registered by the usart_register_callback. The callback function will not be called from the interrupt handler. */
void gpio_disable_callback(uint8_t gpio_pin)
{
	Assert(gpio_pin < 48);
	uint8_t gpio_port = 0;
	if (gpio_pin < 16) {
		gpio_port = 0;
	} else if (gpio_pin < 32) {
		gpio_port = 1;
	} else {
		gpio_port = 2;
	}
	_gpio_instances[gpio_port].callback_enable_mask &= ~(1 << (gpio_pin % 16));
	_gpio_instances[gpio_port].hw->INTENCLR.reg = (1 << (gpio_pin % 16));
}