Skip to content

Commit 7ed2ba5

Browse files
committed
Print GPIO pin configuration for humility gpio --input --with-config
$ humility gpio --input -with-config --pins B:0,B:14,E:1 humility: attached to 0483:3754:002F00174741500820383733 via ST-Link V3 B:0 = 0 Analog:OutPushPull:LowSpeed:NoPull:AF0:Unlocked:InZero:OutZero B:14 = 1 Input:OutPushPull:HighSpeed:NoPull:AF5:Unlocked:InOne:OutZero E:1 = 0 Alternate:OutPushPull:VeryHighSpeed:NoPull:AF12:Unlocked:InZero:OutZero ``` If no pins are specified, then the pin names, values and config settings are printeed one per line for all GPIO pins.
1 parent a4b2911 commit 7ed2ba5

5 files changed

Lines changed: 456 additions & 56 deletions

File tree

Cargo.lock

Lines changed: 131 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ tlvc-text = {git = "https://github.com/oxidecomputer/tlvc"}
101101
vsc7448-info = { git = "https://github.com/oxidecomputer/vsc7448.git" }
102102
vsc7448-types = { git = "https://github.com/oxidecomputer/vsc7448.git" }
103103
ipcc-data = { git = "https://github.com/oxidecomputer/ipcc-rs" }
104+
stm32h7 = { version = "0.14", default-features = false }
104105

105106
#
106107
# We depend on the oxide-stable branch of Oxide's fork of probe-rs to assure

cmd/gpio/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ hif.workspace = true
99
clap.workspace = true
1010
anyhow.workspace = true
1111
parse_int.workspace = true
12+
lazy_static.workspace = true
13+
stm32h7 = { workspace = true, features = ["rt", "stm32h753"] }
14+
zerocopy.workspace = true
1215

1316
humility-cli.workspace = true
1417
humility-cmd.workspace = true

0 commit comments

Comments
 (0)