stm32-rs / stm32-eth

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

Fix #57 #58

Closed datdenkikniet closed 1 year ago

datdenkikniet commented 1 year ago

We introduce two extension traits that, for STM32F4 parts, introduce a delay before writing to a register. This is to prevent the same register from being written to twice within 4 cycles of REF_CLK. It assumes worst-case setups (180 MHz clock, and 25 MHz REF_CLK), which comes out to a minimum of 29 cycles of delay.

On F1 and F7 parts, the extension traits simply forward the writes

TODO: