diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-01-26 21:52:43 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-26 21:52:43 +0000 |
| commit | ecc1aab867ede9f0b5146b758a5797dbc595d486 (patch) | |
| tree | 6fd7b65aa4e66c0874c71112b1d486bcb68928e6 /tests | |
| parent | c8d29a1e2cd3f28c3afdd52a679fcb49f67e812c (diff) | |
| parent | b1245858f355e764a17eda819198f68ad83883ab (diff) | |
Merge pull request #3813 from embassy-rs/stm32-eth-simplify-smi
stm32/eth: rename PHY->Phy, GenericSMI -> GenericPhy. Remove unneeded unsafes.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/src/bin/eth.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/stm32/src/bin/eth.rs b/tests/stm32/src/bin/eth.rs index 4ab6e234f..a7e76fd8e 100644 --- a/tests/stm32/src/bin/eth.rs +++ b/tests/stm32/src/bin/eth.rs | |||
| @@ -7,8 +7,7 @@ mod common; | |||
| 7 | use common::*; | 7 | use common::*; |
| 8 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
| 9 | use embassy_net::StackResources; | 9 | use embassy_net::StackResources; |
| 10 | use embassy_stm32::eth::generic_smi::GenericSMI; | 10 | use embassy_stm32::eth::{Ethernet, GenericPhy, PacketQueue}; |
| 11 | use embassy_stm32::eth::{Ethernet, PacketQueue}; | ||
| 12 | use embassy_stm32::peripherals::ETH; | 11 | use embassy_stm32::peripherals::ETH; |
| 13 | use embassy_stm32::rng::Rng; | 12 | use embassy_stm32::rng::Rng; |
| 14 | use embassy_stm32::{bind_interrupts, eth, peripherals, rng}; | 13 | use embassy_stm32::{bind_interrupts, eth, peripherals, rng}; |
| @@ -29,7 +28,7 @@ bind_interrupts!(struct Irqs { | |||
| 29 | RNG => rng::InterruptHandler<peripherals::RNG>; | 28 | RNG => rng::InterruptHandler<peripherals::RNG>; |
| 30 | }); | 29 | }); |
| 31 | 30 | ||
| 32 | type Device = Ethernet<'static, ETH, GenericSMI>; | 31 | type Device = Ethernet<'static, ETH, GenericPhy>; |
| 33 | 32 | ||
| 34 | #[embassy_executor::task] | 33 | #[embassy_executor::task] |
| 35 | async fn net_task(mut runner: embassy_net::Runner<'static, Device>) -> ! { | 34 | async fn net_task(mut runner: embassy_net::Runner<'static, Device>) -> ! { |
| @@ -87,7 +86,7 @@ async fn main(spawner: Spawner) { | |||
| 87 | #[cfg(feature = "stm32h563zi")] | 86 | #[cfg(feature = "stm32h563zi")] |
| 88 | p.PB15, | 87 | p.PB15, |
| 89 | p.PG11, | 88 | p.PG11, |
| 90 | GenericSMI::new_auto(), | 89 | GenericPhy::new_auto(), |
| 91 | mac_addr, | 90 | mac_addr, |
| 92 | ); | 91 | ); |
| 93 | 92 | ||
