F1C100s_projects
F1C100s_projects copied to clipboard
GPIO Interrupt not working
void gpioe_irq_handler(void) { printf(","); uint8_t a = eint_pin_get_status(GPIOE, 11); printf("status = %d , %d\r\n",a);
}
int main(void) {
............................................................. gpio_pin_init(GPIOE, 11, GPIO_MODE_AF5, GPIO_PULL_NONE, GPIO_DRV_3); eint_pin_init(GPIOE, 11, EINT_TRG_RISING); eint_pin_enable(GPIOE,11);
f1c100s_intc_set_isr(F1C100S_IRQ_GPIOE, gpioe_irq_handler,0);
f1c100s_intc_set_priority(F1C100S_IRQ_GPIOE,1);
f1c100s_intc_enable_irq(F1C100S_IRQ_GPIOE);
.............................................
}
why this code not woking, interrupt not trigered. anybody help me please