Skip to content

Commit

Permalink
gpio: Add basic functionality for GPIOs
Browse files Browse the repository at this point in the history
  • Loading branch information
astapleton committed Jul 31, 2024
1 parent 5da38aa commit f605869
Show file tree
Hide file tree
Showing 5 changed files with 634 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 f605869

Please sign in to comment.