aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-12-05 21:35:28 +0000
committerGitHub <[email protected]>2023-12-05 21:35:28 +0000
commit7703f47c1ecac029f603033b7977d9a2becef48c (patch)
tree622a098636b72f5abba65d2217d778b389fef678
parent83bed7bca476a71da6cfbdb074fdd59862929750 (diff)
parent0ffb35a2a14c5c033ca4376b329d347df1e3c6bf (diff)
Merge pull request #2255 from badrbouslikhin/main
stm32/h7: fix h7 examples
-rw-r--r--examples/stm32h7/src/bin/eth.rs3
-rw-r--r--examples/stm32h7/src/bin/eth_client.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/stm32h7/src/bin/eth.rs b/examples/stm32h7/src/bin/eth.rs
index b7a077374..dbddfc22f 100644
--- a/examples/stm32h7/src/bin/eth.rs
+++ b/examples/stm32h7/src/bin/eth.rs
@@ -92,7 +92,7 @@ async fn main(spawner: Spawner) -> ! {
92 let stack = &*make_static!(Stack::new( 92 let stack = &*make_static!(Stack::new(
93 device, 93 device,
94 config, 94 config,
95 make_static!(StackResources::<2>::new()), 95 make_static!(StackResources::<3>::new()),
96 seed 96 seed
97 )); 97 ));
98 98
@@ -113,6 +113,7 @@ async fn main(spawner: Spawner) -> ! {
113 113
114 socket.set_timeout(Some(embassy_time::Duration::from_secs(10))); 114 socket.set_timeout(Some(embassy_time::Duration::from_secs(10)));
115 115
116 // You need to start a server on the host machine, for example: `nc -l 8000`
116 let remote_endpoint = (Ipv4Address::new(10, 42, 0, 1), 8000); 117 let remote_endpoint = (Ipv4Address::new(10, 42, 0, 1), 8000);
117 info!("connecting..."); 118 info!("connecting...");
118 let r = socket.connect(remote_endpoint).await; 119 let r = socket.connect(remote_endpoint).await;
diff --git a/examples/stm32h7/src/bin/eth_client.rs b/examples/stm32h7/src/bin/eth_client.rs
index f0f28ec9c..17e1d9fb7 100644
--- a/examples/stm32h7/src/bin/eth_client.rs
+++ b/examples/stm32h7/src/bin/eth_client.rs
@@ -93,7 +93,7 @@ async fn main(spawner: Spawner) -> ! {
93 let stack = &*make_static!(Stack::new( 93 let stack = &*make_static!(Stack::new(
94 device, 94 device,
95 config, 95 config,
96 make_static!(StackResources::<2>::new()), 96 make_static!(StackResources::<3>::new()),
97 seed 97 seed
98 )); 98 ));
99 99
@@ -109,6 +109,7 @@ async fn main(spawner: Spawner) -> ! {
109 let client = TcpClient::new(&stack, &state); 109 let client = TcpClient::new(&stack, &state);
110 110
111 loop { 111 loop {
112 // You need to start a server on the host machine, for example: `nc -l 8000`
112 let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(10, 42, 0, 1), 8000)); 113 let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(10, 42, 0, 1), 8000));
113 114
114 info!("connecting..."); 115 info!("connecting...");