aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f7
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-11-24 03:17:54 +0100
committerDario Nieuwenhuis <[email protected]>2021-11-29 02:07:48 +0100
commit3332c4070555f8c87564aa90f61091c9fa4aef8a (patch)
treec521a3c3d89d23bae18b9f2d56fe8d35eec56147 /examples/stm32f7
parent2a2911221dc257e45049c8ceea93a981240f91b0 (diff)
examples: remove unused deps.
Diffstat (limited to 'examples/stm32f7')
-rw-r--r--examples/stm32f7/Cargo.toml2
-rw-r--r--examples/stm32f7/src/bin/eth.rs3
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/stm32f7/Cargo.toml b/examples/stm32f7/Cargo.toml
index 2d3cd0b79..68c73f093 100644
--- a/examples/stm32f7/Cargo.toml
+++ b/examples/stm32f7/Cargo.toml
@@ -9,9 +9,7 @@ resolver = "2"
9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "net", "stm32f767zi", "unstable-pac", "time-driver-tim2"] } 11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "net", "stm32f767zi", "unstable-pac", "time-driver-tim2"] }
12embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
13embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] } 12embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] }
14embassy-macros = { path = "../../embassy-macros" }
15 13
16defmt = "0.3" 14defmt = "0.3"
17defmt-rtt = "0.3" 15defmt-rtt = "0.3"
diff --git a/examples/stm32f7/src/bin/eth.rs b/examples/stm32f7/src/bin/eth.rs
index afb860862..521b031e3 100644
--- a/examples/stm32f7/src/bin/eth.rs
+++ b/examples/stm32f7/src/bin/eth.rs
@@ -13,7 +13,6 @@ use embassy::executor::{Executor, Spawner};
13use embassy::io::AsyncWriteExt; 13use embassy::io::AsyncWriteExt;
14use embassy::time::{Duration, Timer}; 14use embassy::time::{Duration, Timer};
15use embassy::util::Forever; 15use embassy::util::Forever;
16use embassy_macros::interrupt_take;
17use embassy_net::{ 16use embassy_net::{
18 Config as NetConfig, Ipv4Address, Ipv4Cidr, StackResources, StaticConfigurator, TcpSocket, 17 Config as NetConfig, Ipv4Address, Ipv4Cidr, StackResources, StaticConfigurator, TcpSocket,
19}; 18};
@@ -101,7 +100,7 @@ fn main() -> ! {
101 RNG_INST.replace(rng); 100 RNG_INST.replace(rng);
102 } 101 }
103 102
104 let eth_int = interrupt_take!(ETH); 103 let eth_int = interrupt::take!(ETH);
105 let mac_addr = [0x00, 0x00, 0xDE, 0xAD, 0xBE, 0xEF]; 104 let mac_addr = [0x00, 0x00, 0xDE, 0xAD, 0xBE, 0xEF];
106 let state = STATE.put(State::new()); 105 let state = STATE.put(State::new());
107 106