rust-embedded-community / tm4c-hal

An Embedded HAL and general chip support for the TM4C123/LM4F120. Replaces the old lm4f120 crate.
Apache License 2.0
40 stars 27 forks source link

WIP: Add first draft ethernet support #17

Open dtwood opened 5 years ago

thejpster commented 5 years ago

Hey! How's this one coming along?

dtwood commented 5 years ago

Still very much a work in progress, but it does work! Next steps are I think to find some time to sit down, and simplify / tidy this as much as possible. Then it should be ready for at least a first attempt at reviewing.

Independently, I still need to have a think about https://github.com/rust-embedded/wg/issues/278#issuecomment-448409794, and whether I want to write up some ideas for how that should be integrated, the intial draft in https://github.com/dtwood/svd2rust/tree/ephy and https://github.com/dtwood/svd2rust/tree/edes breaks the rest of svd2rust. And I think there should probably be some sort of template support for weirder cases like these, so that the they can stay out of tree and the templates provided along with the libraries instead. Maybe at some point I'll find some time to type that all up somewhere 🙂

dtwood commented 5 years ago

If you find some time, I think this now in a state where I'm mostly happy with it, and would be ready for a first pass review. Things that are still outstanding are to push the revision of vcell forwards to compile on stable (currently blocked on a release including https://github.com/japaric/vcell/pull/4), and to add an 'ethernet' feature flag, that will pull in smoltcp.

One other thought is whether this driver should actually be a separate crate (tm4c129x-eth), like the https://github.com/stm32-rs/stm32-eth crate?

thejpster commented 5 years ago

Neat! I will try and find time to look at this soon :)

thejpster commented 4 years ago

Shall we try and push this one over the line? Ethernet support might be useful for another project I'm working on...