Skip to content

Commit

Permalink
Shared GPIO Implementation (#3)
Browse files Browse the repository at this point in the history
* make esp32c3 examples run from flash / flashable
* use gpio3 for blinky
* direct boot in Cargo.toml
* have a shared gpio impl
* use PACs from their original locations again
  • Loading branch information
bjoernQ authored Jan 6, 2022
1 parent 4e9ad72 commit 6d94b61
Show file tree
Hide file tree
Showing 21 changed files with 1,754 additions and 871 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"rust-analyzer.cargo.features": [
"esp32c3"
],
"editor.formatOnSave": true,
"rust-analyzer.checkOnSave.allTargets": false
}
}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ members = [
"esp32-hal",
"esp32c3-hal",
"esp32s2-hal",
"esp32s3-hal",
"esp32s3-hal"
]
3 changes: 2 additions & 1 deletion esp-hal-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
edition = "2018"

[dependencies]
paste = "1.0.6"
embedded-hal = { version = "0.2", features = ["unproven"] }
nb = "1.0"
riscv = { version = "0.7", optional = true }
Expand All @@ -12,7 +13,7 @@ xtensa-lx = { version = "0.4", optional = true }
# IMPORTANT:
# Each supported device MUST have its PAC included below along with a
# corresponding feature.
esp32_pac = { package = "esp32", git = "https://github.com/jessebraham/esp32.git", branch = "develop", optional = true }
esp32_pac = { package = "esp32", git = "https://github.com/jessebraham/esp32.git", branch = "develop", optional = true }
esp32c3_pac = { package = "esp32c3", git = "https://github.com/jessebraham/esp32c3.git", branch = "develop", optional = true }
esp32s2_pac = { package = "esp32s2", git = "https://github.com/jessebraham/esp32s2.git", branch = "develop", optional = true }
esp32s3_pac = { package = "esp32s3", git = "https://github.com/jessebraham/esp32s3.git", branch = "develop", optional = true }
Expand Down
Loading

0 comments on commit 6d94b61

Please sign in to comment.