stm32-rs / stm32-eth

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

Async await #75

Closed datdenkikniet closed 1 year ago

datdenkikniet commented 1 year ago

Add some async functions.

This PR refactors the code structure for the rings pretty significantly. It makes separating responsibilities a little easier, and properly separates RX and TX.

It also removes the argument from stm32_eth::eth_interrupt_handler (at last :P See #44), and makes a few methods static.