stm32-rs / stm32-eth

Embedded Ethernet driver in Rust
Apache License 2.0
147 stars 47 forks source link

Add 10 Mbit and Half duplex support #50

Closed datdenkikniet closed 2 years ago

datdenkikniet commented 2 years ago

Currently, the MAC is always configured for Fast Ethernet Speed and Full duplex. This means, AFAICT, that it will never work with a PHY that is configured differently (manually or though autonegotiation), which isn't great.

We can support such a feature if we decide to merge #45, or decide that adopting the ieee_802_3_miim crate (authored by me) is feasible.

Alternatively, we could add a callback to the new function that allows the user to interact with the MIIM to determine the speed and duplex mode, which can then be used during configuration of the MAC.

datdenkikniet commented 2 years ago

Closing as a duplicate of #24