Skip to content

Commit 526ceba

Browse files
authored
gpio: Add basic functionality for GPIOs (#17)
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).
1 parent 7a77a37 commit 526ceba

File tree

5 files changed

+652
-2
lines changed

5 files changed

+652
-2
lines changed

Cargo.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,17 @@ rustdoc-args = ["--cfg", "docsrs"]
2020

2121
[features]
2222
default = ["rt"]
23+
2324
device-selected = []
24-
rm0492 = []
25-
rm0481 = []
25+
26+
# rmXXXX represent processor subfamilies and their common features
27+
rm0492 = ["gpio-h503"]
28+
rm0481 = ["gpio-h5x"] # STM32H52x/6x/7x
29+
30+
# Different subfamilies have different GPIOs available
31+
gpio-h503 = []
32+
gpio-h5x = []
33+
2634
rt = ["stm32h5/rt"]
2735
stm32h503 = ["stm32h5/stm32h503", "device-selected", "rm0492"]
2836
stm32h562 = ["stm32h5/stm32h562", "device-selected", "rm0481"]

0 commit comments

Comments
 (0)