diff options
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 | ||
