/* Unregisters a callback. 
Unregisters a callback function which is implemented by the user. */
void gpio_unregister_callback(uint8_t gpio_pin, enum gpio_callback callback_type)
/* Unregisters a callback. 
Unregisters a callback function which is implemented by the user. */
void gpio_unregister_callback(uint8_t gpio_pin, enum gpio_callback callback_type)
{
	Assert(callback_func);
	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[gpio_pin % 16] = NULL;
	_gpio_instances[gpio_port].callback_reg_mask &= ~(1 << (gpio_pin % 16));
}