fabricedesre / cc3200-rs

Getting Rust to run on a TI cc3200
Mozilla Public License 2.0
7 stars 2 forks source link

Replaced simplelink C callbacks with rust code #47

Closed dhylands closed 6 years ago

dhylands commented 7 years ago

The SimpleLinkWlanEventHandler was nasty because it uses a C union.

dhylands commented 7 years ago

I ran cargo fmt on the affected files (so some of the changes are just from that).

It turns out cargo fmt doesn't know about unions, so I had to replace them with struct to run cargo fmt and then replace them back with unions afterwards.

I'm going to file a bug against rustfmt

dhylands commented 6 years ago

Closing old PRs