diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-11-24 03:17:54 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-11-29 02:07:48 +0100 |
| commit | 3332c4070555f8c87564aa90f61091c9fa4aef8a (patch) | |
| tree | c521a3c3d89d23bae18b9f2d56fe8d35eec56147 /examples/stm32h7 | |
| parent | 2a2911221dc257e45049c8ceea93a981240f91b0 (diff) | |
examples: remove unused deps.
Diffstat (limited to 'examples/stm32h7')
| -rw-r--r-- | examples/stm32h7/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/eth.rs | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml index a852b6a73..89e5c4ead 100644 --- a/examples/stm32h7/Cargo.toml +++ b/examples/stm32h7/Cargo.toml | |||
| @@ -11,9 +11,7 @@ resolver = "2" | |||
| 11 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } | 11 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 12 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 12 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 13 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32h743zi", "net", "time-driver-tim2"] } | 13 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32h743zi", "net", "time-driver-tim2"] } |
| 14 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | ||
| 15 | embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] } | 14 | embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] } |
| 16 | embassy-macros = { path = "../../embassy-macros" } | ||
| 17 | 15 | ||
| 18 | defmt = "0.3" | 16 | defmt = "0.3" |
| 19 | defmt-rtt = "0.3" | 17 | defmt-rtt = "0.3" |
diff --git a/examples/stm32h7/src/bin/eth.rs b/examples/stm32h7/src/bin/eth.rs index c1b203b8e..9998bc4e9 100644 --- a/examples/stm32h7/src/bin/eth.rs +++ b/examples/stm32h7/src/bin/eth.rs | |||
| @@ -13,7 +13,6 @@ use embassy::executor::{Executor, Spawner}; | |||
| 13 | use embassy::io::AsyncWriteExt; | 13 | use embassy::io::AsyncWriteExt; |
| 14 | use embassy::time::{Duration, Timer}; | 14 | use embassy::time::{Duration, Timer}; |
| 15 | use embassy::util::Forever; | 15 | use embassy::util::Forever; |
| 16 | use embassy_macros::interrupt_take; | ||
| 17 | use embassy_net::{ | 16 | use embassy_net::{ |
| 18 | Config as NetConfig, Ipv4Address, Ipv4Cidr, StackResources, StaticConfigurator, TcpSocket, | 17 | Config as NetConfig, Ipv4Address, Ipv4Cidr, StackResources, StaticConfigurator, TcpSocket, |
| 19 | }; | 18 | }; |
| @@ -100,7 +99,7 @@ fn main() -> ! { | |||
| 100 | RNG_INST.replace(rng); | 99 | RNG_INST.replace(rng); |
| 101 | } | 100 | } |
| 102 | 101 | ||
| 103 | let eth_int = interrupt_take!(ETH); | 102 | let eth_int = interrupt::take!(ETH); |
| 104 | let mac_addr = [0x10; 6]; | 103 | let mac_addr = [0x10; 6]; |
| 105 | let state = STATE.put(State::new()); | 104 | let state = STATE.put(State::new()); |
| 106 | let eth = unsafe { | 105 | let eth = unsafe { |
