Statistics: Posted by ESP_Faye — Thu Mar 24, 2016 10:27 am
Code:
void int_pin_init(void)
{
PIN_PULLUP_EN(GPIO_PIN_REG_5);
PIN_FUNC_SELECT(GPIO_PIN_REG_5, FUNC_GPIO5);
GPIO_AS_INPUT(GPIO_Pin_5);
gpio_intr_handler_register(gpioIntFn, NULL);
gpio_pin_intr_state_set(5,GPIO_PIN_INTR_ANYEDGE);
}
Statistics: Posted by hark — Sun Mar 20, 2016 3:12 pm