Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a blocking Windows TX/RX function #246

Merged
merged 10 commits into from
Nov 17, 2024
Merged

Add a blocking Windows TX/RX function #246

merged 10 commits into from
Nov 17, 2024

Conversation

jamwaffles
Copy link
Collaborator

@jamwaffles jamwaffles commented Nov 15, 2024

TODO

  • Clean up example code again
  • Changelog entry to add blocking method
  • Deprecate the async Windows tx_rx_task so a backport to 0.5 will give warnings
  • Park the TX/RX threads when there's nothing in flight to save CPU
  • Have a look at async-spin-sleep and see what performance and CPU usage is like, with a mind to recommending it for applications that still require async timers.

@jamwaffles jamwaffles marked this pull request as ready for review November 17, 2024 11:18
@jamwaffles jamwaffles merged commit 90bacd3 into master Nov 17, 2024
10 checks passed
@jamwaffles jamwaffles deleted the windows-love branch November 17, 2024 11:20
jamwaffles added a commit that referenced this pull request Nov 17, 2024
* Return `ReceiveAction` from `receive_frame`

So we can filter out self-sent frames

* Rewrite Windows TX/RX driver to use the `pcap` crate

Massively improved performance (although Windows is still rubbish for RT
stuff)

* Add Windows example demonstrating some perf tweaks

* Deprecate Windows `tx_rx_task`

* Give EEPROM reads a little bit more breathing room
jamwaffles added a commit that referenced this pull request Nov 17, 2024
* Return `ReceiveAction` from `receive_frame`

So we can filter out self-sent frames

* Rewrite Windows TX/RX driver to use the `pcap` crate

Massively improved performance (although Windows is still rubbish for RT
stuff)

* Add Windows example demonstrating some perf tweaks

* Deprecate Windows `tx_rx_task`

* Give EEPROM reads a little bit more breathing room
jamwaffles added a commit that referenced this pull request Nov 17, 2024
* Return `ReceiveAction` from `receive_frame`

So we can filter out self-sent frames

* Rewrite Windows TX/RX driver to use the `pcap` crate

Massively improved performance (although Windows is still rubbish for RT
stuff)

* Add Windows example demonstrating some perf tweaks

* Deprecate Windows `tx_rx_task`

* Give EEPROM reads a little bit more breathing room
@jamwaffles jamwaffles mentioned this pull request Nov 17, 2024
jamwaffles added a commit that referenced this pull request Nov 17, 2024
* Add a blocking Windows TX/RX function (#246)

* Return `ReceiveAction` from `receive_frame`

So we can filter out self-sent frames

* Rewrite Windows TX/RX driver to use the `pcap` crate

Massively improved performance (although Windows is still rubbish for RT
stuff)

* Add Windows example demonstrating some perf tweaks

* Deprecate Windows `tx_rx_task`

* Bump MSRV to 1.79

To fix `#[collapse_debuginfo(yes)]` issues in `embassy-time`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant