Add gpio_init_mask64 function#2907
Merged
Merged
Conversation
lurch
reviewed
Apr 23, 2026
lurch
reviewed
Apr 23, 2026
lurch
reviewed
Apr 23, 2026
Co-authored-by: Andrew Scheller <lurch@durge.org>
Early out on no remaining bits in mask for no code cost vs the MIN() version Also optimize the 64 bit methods for NUM_BANK0_GPIOS <= 32
lurch
reviewed
May 9, 2026
will-v-pi
reviewed
May 11, 2026
lurch
reviewed
May 13, 2026
lurch
reviewed
May 13, 2026
Co-authored-by: Andrew Scheller <lurch@durge.org>
will-v-pi
reviewed
May 13, 2026
lurch
reviewed
May 13, 2026
lurch
reviewed
May 13, 2026
will-v-pi
previously approved these changes
May 14, 2026
Contributor
will-v-pi
left a comment
There was a problem hiding this comment.
One possible improvement, but that can easily go in a separate PR if it's worth it, so approving
will-v-pi
approved these changes
May 14, 2026
carlwhamilton
pushed a commit
to carlwhamilton/pico-sdk
that referenced
this pull request
May 14, 2026
* Add gpio_init_mask64 function * Improve efficiency of various gpio mask functions Fixes raspberrypi#2643 Co-authored-by: Andrew Scheller <lurch@durge.org> Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com> Co-authored-by: will-v-pi <108662275+will-v-pi@users.noreply.github.com>
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.
Add
gpio_init_mask64function mirroring the othermask64/masked64GPIO functions used by RP2350B with more than 32 GPIO's.See #2643