stm32h7: Add ethernet example

This commit is contained in:
Thales Fragoso
2021-06-15 18:52:43 -03:00
committed by Dario Nieuwenhuis
parent 77546825a1
commit 098ce6e740
6 changed files with 216 additions and 3 deletions

View File

@ -19,8 +19,11 @@ defmt-error = []
[dependencies]
embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] }
embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32h743zi"] }
embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32h743zi", "net"] }
embassy-extras = {version = "0.1.0", path = "../../embassy-extras" }
embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] }
stm32-metapac = { path = "../../stm32-metapac", features = ["stm32h743zi"] }
embassy-macros = { path = "../../embassy-macros" }
stm32h7 = { version = "0.13", features = ["stm32h743"]}
stm32h7xx-hal = { version = "0.9.0", features = ["stm32h743"] }
@ -34,6 +37,18 @@ panic-probe = { version = "0.2.0", features= ["print-defmt"] }
futures = { version = "0.3.8", default-features = false, features = ["async-await"] }
rtt-target = { version = "0.3", features = ["cortex-m"] }
heapless = { version = "0.7.1", default-features = false }
rand_core = { version = "0.6.2" }
critical-section = "0.2.1"
micromath = "2.0.0"
[dependencies.smoltcp]
git = "https://github.com/smoltcp-rs/smoltcp"
rev = "e4241510337e095b9d21136c5f58b2eaa1b78479"
default-features = false
features = [
"proto-ipv4",
"socket",
"async",
"defmt",
]