diff options
| author | Simon B. Gasse <[email protected]> | 2024-01-19 21:10:03 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-02-01 01:33:34 +0100 |
| commit | 42d8f3930a861dcc4540198bf2038151eb4e3e27 (patch) | |
| tree | a188a1489792563413a9330d9fb74d7cb42dd01a /examples/stm32h7/src/bin/eth_client.rs | |
| parent | e05f6505ae18696ad178119c747775b7e839ae8d (diff) | |
Implement MII interface
- Extend the eth/v2 module to support MII besides RMII.
- Replace `Ethernet::new` with `Ethernet::new_mii` and
`Ethernet::new_rmii`.
- Update ethernet examples.
- Add example for MII ethernet.
Diffstat (limited to 'examples/stm32h7/src/bin/eth_client.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/eth_client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/eth_client.rs b/examples/stm32h7/src/bin/eth_client.rs index dcc6e36e2..c4da5776f 100644 --- a/examples/stm32h7/src/bin/eth_client.rs +++ b/examples/stm32h7/src/bin/eth_client.rs | |||
| @@ -65,7 +65,7 @@ async fn main(spawner: Spawner) -> ! { | |||
| 65 | let mac_addr = [0x00, 0x00, 0xDE, 0xAD, 0xBE, 0xEF]; | 65 | let mac_addr = [0x00, 0x00, 0xDE, 0xAD, 0xBE, 0xEF]; |
| 66 | 66 | ||
| 67 | static PACKETS: StaticCell<PacketQueue<16, 16>> = StaticCell::new(); | 67 | static PACKETS: StaticCell<PacketQueue<16, 16>> = StaticCell::new(); |
| 68 | let device = Ethernet::new( | 68 | let device = Ethernet::new_rmii( |
| 69 | PACKETS.init(PacketQueue::<16, 16>::new()), | 69 | PACKETS.init(PacketQueue::<16, 16>::new()), |
| 70 | p.ETH, | 70 | p.ETH, |
| 71 | Irqs, | 71 | Irqs, |
