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: add ErasedPin and PartiallyErasedPin #19

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Conversation

astapleton
Copy link
Contributor

@astapleton astapleton commented Aug 13, 2024

Add pin type erasure so that pins can be used interchangeably as the same type. Pin port and number are stored in the struct instead of being encoded in the type.

This is taken directly from the implementation in stm32h7xx-hal.

@astapleton astapleton requested a review from richardeoin August 13, 2024 19:06
astapleton added a commit that referenced this pull request Oct 8, 2024
This adds the basic outline functionality for the GPIO module and will
form the base for follow-up PRs (see #19, #20, #21) to round out the
GPIO functionality.

The gpio module is largely based on/copied from the implementation in
[stm32h7xx-hal](https://github.com/stm32-rs/stm32h7xx-hal).
Base automatically changed from as/gpio-base to master October 8, 2024 20:49
@astapleton astapleton merged commit 5118c26 into master Oct 10, 2024
15 checks passed
@astapleton astapleton deleted the as/gpio-erase branch October 10, 2024 20:03
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

Successfully merging this pull request may close these issues.

2 participants