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

Implement GPIO Interrupt Handling #3

Closed
6 of 7 tasks
zacck opened this issue Jan 2, 2024 · 0 comments · Fixed by #4
Closed
6 of 7 tasks

Implement GPIO Interrupt Handling #3

zacck opened this issue Jan 2, 2024 · 0 comments · Fixed by #4
Assignees
Labels
enhancement New feature or request

Comments

@zacck
Copy link
Owner

zacck commented Jan 2, 2024

Adding GPIO Interrupts

  • Add EXTI struct to MCU header
  • Add peripheral definition for EXTI
  • Add IRQ numbers for GPIO interrupts
  • Add macro to convert base address to gpio port
  • Handle processor specoific NVIC registers and ICER & ISER
  • Handle GPIO Interrupt mode in gpio.c
  • Add GPIO API for IRQconfig, irqpriorityconfig, irqhandling

How interrupts work

  • The interrupt line should be configured and enabled this is done by selecting the edge trigger and enabling interrupt requests via the interrupt mask

References
STM32F10xx Reference manual

@zacck zacck added the enhancement New feature or request label Jan 2, 2024
@zacck zacck self-assigned this Jan 2, 2024
@zacck zacck closed this as completed in #4 Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant