Skip to content

firmware: remove std usage in the bitstream and timers in devices - #26

Open
hansl wants to merge 2 commits into
elipsitz:handheldfrom
hansl:embassy-yak-shaving
Open

firmware: remove std usage in the bitstream and timers in devices#26
hansl wants to merge 2 commits into
elipsitz:handheldfrom
hansl:embassy-yak-shaving

Conversation

@hansl

@hansl hansl commented Sep 1, 2026

Copy link
Copy Markdown

This is essentially cleanup in preparation to adding embassy and using async (and reducing the number of threads), also freeing memory.

Instead relying on using the embedded-hal traits and ESP-IDF version.
This is yak shaving to remove std as much as possible and later using
embassy where it makes sense. It also makes drivers more testable in
the future (with a test timer).
std::io::Read was the last thing tying the bitstream mod to std. The
heatshrink decoder already speaks embedded-io, so moving the FPGA driver and
the header parser onto the same traits lets the decoder feed the driver
directly and removes the ToStd adapter that sat between them.
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