Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO Interrupt not working #8

Open
satar1980 opened this issue Dec 16, 2022 · 0 comments
Open

GPIO Interrupt not working #8

satar1980 opened this issue Dec 16, 2022 · 0 comments

Comments

@satar1980
Copy link

satar1980 commented Dec 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant