diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-01-26 21:53:00 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-01-26 22:17:25 +0100 |
| commit | ff52bde787031493ce174cdc1dcc2434fd16aa1b (patch) | |
| tree | 7f3a1e5c9ea03f9f2b8ed2af28d6d2ea1164244f /examples/stm32h7/src/bin | |
| parent | afe6b9a192f1434bb024040a20cef9509c307871 (diff) | |
stm32: change all examples and tests to use GenericSMI::new_auto().
Diffstat (limited to 'examples/stm32h7/src/bin')
| -rw-r--r-- | examples/stm32h7/src/bin/eth.rs | 2 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/eth_client.rs | 2 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/eth_client_mii.rs | 2 |
3 files changed, 3 insertions, 3 deletions
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"); |
