Skip to content

Conversation

astapleton
Copy link
Member

@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
astapleton added a commit that referenced this pull request Jan 10, 2025
embedded-hal 1.0 splits the non-blocking definitions into a separate
dependency. Include it here.
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