Skip to content

Commit

Permalink
gpio: Add basic functionality for GPIOs (#17)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
astapleton authored Oct 8, 2024
1 parent 7a77a37 commit 526ceba
Show file tree
Hide file tree
Showing 5 changed files with 652 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ rustdoc-args = ["--cfg", "docsrs"]

[features]
default = ["rt"]

device-selected = []
rm0492 = []
rm0481 = []

# rmXXXX represent processor subfamilies and their common features
rm0492 = ["gpio-h503"]
rm0481 = ["gpio-h5x"] # STM32H52x/6x/7x

# Different subfamilies have different GPIOs available
gpio-h503 = []
gpio-h5x = []

rt = ["stm32h5/rt"]
stm32h503 = ["stm32h5/stm32h503", "device-selected", "rm0492"]
stm32h562 = ["stm32h5/stm32h562", "device-selected", "rm0481"]
Expand Down
Loading

0 comments on commit 526ceba

Please sign in to comment.