/* Sets pull type to the selected interrupt pin.  */
void gpio_irq_pull_ctrl(gpio_irq_t *obj, PinMode pull_type)
/* Sets pull type to the selected interrupt pin.  */
void gpio_irq_pull_ctrl(gpio_irq_t *obj, PinMode pull_type)
{
	u32 GPIO_PuPd;
	switch (pull_type) {
		case PullNone:
			GPIO_PuPd = GPIO_PuPd_NOPULL;
		break;
		case PullDown:
			GPIO_PuPd = GPIO_PuPd_DOWN;
		break;
		case PullUp:
			GPIO_PuPd = GPIO_PuPd_UP;
		break;
		default:
			GPIO_PuPd = GPIO_PuPd_NOPULL;
		break;
	}
	PAD_PullCtrl(obj->pin, GPIO_PuPd);
}