aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-01-26 21:53:00 +0100
committerDario Nieuwenhuis <[email protected]>2025-01-26 22:17:25 +0100
commitff52bde787031493ce174cdc1dcc2434fd16aa1b (patch)
tree7f3a1e5c9ea03f9f2b8ed2af28d6d2ea1164244f
parentafe6b9a192f1434bb024040a20cef9509c307871 (diff)
stm32: change all examples and tests to use GenericSMI::new_auto().
-rw-r--r--examples/stm32f4/src/bin/eth.rs2
-rw-r--r--examples/stm32f7/src/bin/eth.rs2
-rw-r--r--examples/stm32h5/src/bin/eth.rs2
-rw-r--r--examples/stm32h7/src/bin/eth.rs2
-rw-r--r--examples/stm32h7/src/bin/eth_client.rs2
-rw-r--r--examples/stm32h7/src/bin/eth_client_mii.rs2
-rw-r--r--tests/stm32/src/bin/eth.rs2
7 files changed, 7 insertions, 7 deletions
diff --git a/examples/stm32f4/src/bin/eth.rs b/examples/stm32f4/src/bin/eth.rs
index baed96449..a3af8f75c 100644
--- a/examples/stm32f4/src/bin/eth.rs
+++ b/examples/stm32f4/src/bin/eth.rs
@@ -76,7 +76,7 @@ async fn main(spawner: Spawner) -> ! {
76 p.PG13, 76 p.PG13,
77 p.PB13, 77 p.PB13,
78 p.PG11, 78 p.PG11,
79 GenericSMI::new(0), 79 GenericSMI::new_auto(),
80 mac_addr, 80 mac_addr,
81 ); 81 );
82 82
diff --git a/examples/stm32f7/src/bin/eth.rs b/examples/stm32f7/src/bin/eth.rs
index 1f1eadf37..f353af674 100644
--- a/examples/stm32f7/src/bin/eth.rs
+++ b/examples/stm32f7/src/bin/eth.rs
@@ -77,7 +77,7 @@ async fn main(spawner: Spawner) -> ! {
77 p.PG13, 77 p.PG13,
78 p.PB13, 78 p.PB13,
79 p.PG11, 79 p.PG11,
80 GenericSMI::new(0), 80 GenericSMI::new_auto(),
81 mac_addr, 81 mac_addr,
82 ); 82 );
83 83
diff --git a/examples/stm32h5/src/bin/eth.rs b/examples/stm32h5/src/bin/eth.rs
index eee1632f5..ead346741 100644
--- a/examples/stm32h5/src/bin/eth.rs
+++ b/examples/stm32h5/src/bin/eth.rs
@@ -80,7 +80,7 @@ async fn main(spawner: Spawner) -> ! {
80 p.PG13, 80 p.PG13,
81 p.PB15, 81 p.PB15,
82 p.PG11, 82 p.PG11,
83 GenericSMI::new(0), 83 GenericSMI::new_auto(),
84 mac_addr, 84 mac_addr,
85 ); 85 );
86 86
diff --git a/examples/stm32h7/src/bin/eth.rs b/examples/stm32h7/src/bin/eth.rs
index ec3f2c000..6665cd1d0 100644
--- a/examples/stm32h7/src/bin/eth.rs
+++ b/examples/stm32h7/src/bin/eth.rs
@@ -79,7 +79,7 @@ async fn main(spawner: Spawner) -> ! {
79 p.PG13, // TX_D0: Transmit Bit 0 79 p.PG13, // TX_D0: Transmit Bit 0
80 p.PB13, // TX_D1: Transmit Bit 1 80 p.PB13, // TX_D1: Transmit Bit 1
81 p.PG11, // TX_EN: Transmit Enable 81 p.PG11, // TX_EN: Transmit Enable
82 GenericSMI::new(0), 82 GenericSMI::new_auto(),
83 mac_addr, 83 mac_addr,
84 ); 84 );
85 85
diff --git a/examples/stm32h7/src/bin/eth_client.rs b/examples/stm32h7/src/bin/eth_client.rs
index a1558b079..4fbe10f31 100644
--- a/examples/stm32h7/src/bin/eth_client.rs
+++ b/examples/stm32h7/src/bin/eth_client.rs
@@ -81,7 +81,7 @@ async fn main(spawner: Spawner) -> ! {
81 p.PG13, 81 p.PG13,
82 p.PB13, 82 p.PB13,
83 p.PG11, 83 p.PG11,
84 GenericSMI::new(0), 84 GenericSMI::new_auto(),
85 mac_addr, 85 mac_addr,
86 ); 86 );
87 87
diff --git a/examples/stm32h7/src/bin/eth_client_mii.rs b/examples/stm32h7/src/bin/eth_client_mii.rs
index a352ef444..53f86ac80 100644
--- a/examples/stm32h7/src/bin/eth_client_mii.rs
+++ b/examples/stm32h7/src/bin/eth_client_mii.rs
@@ -86,7 +86,7 @@ async fn main(spawner: Spawner) -> ! {
86 p.PC2, 86 p.PC2,
87 p.PE2, 87 p.PE2,
88 p.PG11, 88 p.PG11,
89 GenericSMI::new(1), 89 GenericSMI::new_auto(),
90 mac_addr, 90 mac_addr,
91 ); 91 );
92 info!("Device created"); 92 info!("Device created");
diff --git a/tests/stm32/src/bin/eth.rs b/tests/stm32/src/bin/eth.rs
index bf1922dde..4ab6e234f 100644
--- a/tests/stm32/src/bin/eth.rs
+++ b/tests/stm32/src/bin/eth.rs
@@ -87,7 +87,7 @@ async fn main(spawner: Spawner) {
87 #[cfg(feature = "stm32h563zi")] 87 #[cfg(feature = "stm32h563zi")]
88 p.PB15, 88 p.PB15,
89 p.PG11, 89 p.PG11,
90 GenericSMI::new(0), 90 GenericSMI::new_auto(),
91 mac_addr, 91 mac_addr,
92 ); 92 );
93 93