Repository navigation
sw: document that GPIO interrupt status reads clear all pins - #143
Open
sidcraftscode wants to merge 1 commit into
Open
sidcraftscode wants to merge 1 commit into
sidcraftscode wants to merge 1 commit into
Conversation
GPIO_INTRPT_STATUS is cleared on read as a whole, so gpio_pin_get_interrupt_status() also drops the pending status of every other pin. Say so in gpio.h and point to gpio_get_interrupt_status() for checking several pins.
phsauter
force-pushed
the
gpio-status-doc
branch
from
November 13, 2026 13:20
0e9ab25 to
aaee0e4
Compare
phsauter
approved these changes
Nov 13, 2026
Collaborator
|
Thanks for reporting and fixing the mismatch. I will merge as soon as the CI stops being broken. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GPIO_INTRPT_STATUSis cleared on read as a whole (gpio_reg_top.sv, and the GPIO README), sogpio_pin_get_interrupt_status()also throws away whatever is pending on the other pins: with two pins fired, the call for pin 0 returns 1 and the following call for pin 1 returns 0. The header now says so and points to readinggpio_get_interrupt_status()once when checking several pins.