Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stm32: impl uart write_all without panic
Default write_all implementation uses panic: https://github.com/rust-embedded/embedded-hal/blob/master/embedded-io-async/src/lib.rs#L138 and https://github.com/rust-embedded/embedded-hal/blob/master/embedded-io/src/lib.rs#L397 This version produced 456 bytes smaller binary in my application where embedded-io-async::write_all was used.
- Loading branch information
Showing
2 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters