add smoltcp dependency
All checks were successful
Rust/sat-rs/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2024-05-20 19:04:01 +02:00
parent 039370485d
commit 2bd5191100
Signed by: muellerr
GPG Key ID: A649FB78196E3849
5 changed files with 56 additions and 2 deletions

View File

@ -22,3 +22,6 @@ target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
[alias]
rb = "run --bin"
rrb = "run --release --bin"
[env]
DEFMT_LOG = "info"

View File

@ -294,12 +294,31 @@ version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d758ba1b47b00caf47f24925c0074ecb20d6dfcffe7f6d53395c0465674841a"
[[package]]
name = "hash32"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47d60b12902ba28e2730cd37e95b8c9223af2808df9e902d4df49588d1470606"
dependencies = [
"byteorder",
]
[[package]]
name = "hashbrown"
version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
[[package]]
name = "heapless"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0bfb9eb618601c89945a70e254898da93b13be0388091d42117462b265bb3fad"
dependencies = [
"hash32",
"stable_deref_trait",
]
[[package]]
name = "indexmap"
version = "2.2.6"
@ -310,6 +329,12 @@ dependencies = [
"hashbrown",
]
[[package]]
name = "managed"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ca88d725a0a943b096803bd34e73a4437208b6077654cc4ecb2947a5f91618d"
[[package]]
name = "nb"
version = "0.1.3"
@ -542,6 +567,7 @@ dependencies = [
"rtic",
"rtic-monotonics",
"satrs",
"smoltcp",
"stm32h7xx-hal",
]
@ -566,6 +592,19 @@ version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
[[package]]
name = "smoltcp"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a1a996951e50b5971a2c8c0fa05a381480d70a933064245c4a223ddc87ccc97"
dependencies = [
"bitflags",
"byteorder",
"cfg-if",
"heapless",
"managed",
]
[[package]]
name = "spacepackets"
version = "0.11.2"
@ -613,6 +652,7 @@ dependencies = [
"fugit",
"nb 1.1.0",
"paste",
"smoltcp",
"stm32h7",
"void",
]

View File

@ -20,8 +20,14 @@ defmt = "0.3"
defmt-brtt = { version = "0.1", default-features = false, features = ["rtt"] }
panic-probe = { version = "0.3", features = ["print-defmt"] }
cortex-m-semihosting = "0.5.0"
stm32h7xx-hal = { version="0.16", features= ["stm32h743v"] }
stm32h7xx-hal = { version="0.16", features= ["stm32h743v", "ethernet"] }
[dependencies.smoltcp]
version = "0.11.0"
default-features = false
features = ["medium-ethernet", "proto-ipv4", "socket-raw"]
optional = true
[dependencies.rtic]
version = "2"
features = ["thumbv7-backend"]
@ -45,7 +51,7 @@ codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = 'z' # <-
opt-level = 's' # <-
overflow-checks = true # <-
# cargo test

View File

@ -111,3 +111,7 @@ You can configure the blinky frequency using
All these commands will package a PUS telecommand which will be sent to the MCU using the COBS
format as the packet framing format.
## Resources
- [STM32H743ZI Ethernet link checker example](https://github.com/stm32-rs/stm32h7xx-hal/blob/master/examples/ethernet-nucleo-h743zi2.rs)

View File

@ -77,6 +77,7 @@ mod app {
async fn blink(mut cx: blink::Context) {
let leds = cx.local.leds;
loop {
defmt::info!("toggling LEDs");
leds.led0.toggle();
leds.led1.toggle();
leds.led2.toggle();