diff options
Diffstat (limited to 'tests/stm32/src')
| -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 95789ffc5..ffc76b96f 100644 --- a/tests/stm32/src/bin/eth.rs +++ b/tests/stm32/src/bin/eth.rs | |||
| @@ -70,9 +70,6 @@ async fn main(spawner: Spawner) { | |||
| 70 | 70 | ||
| 71 | static PACKETS: StaticCell<PacketQueue<PACKET_QUEUE_SIZE, PACKET_QUEUE_SIZE>> = StaticCell::new(); | 71 | static PACKETS: StaticCell<PacketQueue<PACKET_QUEUE_SIZE, PACKET_QUEUE_SIZE>> = StaticCell::new(); |
| 72 | 72 | ||
| 73 | let sma = Sma::new(p.ETH_SMA, p.PA2, p.PC1); | ||
| 74 | let phy = GenericPhy::new_auto(sma); | ||
| 75 | |||
| 76 | let device = Ethernet::new( | 73 | let device = Ethernet::new( |
| 77 | PACKETS.init(PacketQueue::<PACKET_QUEUE_SIZE, PACKET_QUEUE_SIZE>::new()), | 74 | PACKETS.init(PacketQueue::<PACKET_QUEUE_SIZE, PACKET_QUEUE_SIZE>::new()), |
| 78 | p.ETH, | 75 | p.ETH, |
| @@ -87,8 +84,10 @@ async fn main(spawner: Spawner) { | |||
| 87 | #[cfg(feature = "stm32h563zi")] | 84 | #[cfg(feature = "stm32h563zi")] |
| 88 | p.PB15, | 85 | p.PB15, |
| 89 | p.PG11, | 86 | p.PG11, |
| 90 | phy, | ||
| 91 | mac_addr, | 87 | mac_addr, |
| 88 | p.ETH_SMA, | ||
| 89 | p.PA2, | ||
| 90 | p.PC1, | ||
| 92 | ); | 91 | ); |
| 93 | 92 | ||
| 94 | let config = embassy_net::Config::dhcpv4(Default::default()); | 93 | let config = embassy_net::Config::dhcpv4(Default::default()); |
