Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Remove CharIO in favor of FormatWriter and write! in core #250

Open
kvark opened this issue Nov 26, 2014 · 2 comments
Open

Remove CharIO in favor of FormatWriter and write! in core #250

kvark opened this issue Nov 26, 2014 · 2 comments

Comments

@kvark
Copy link
Contributor

kvark commented Nov 26, 2014

This has been discussed a little, and we should investigate more for sure. I just don't know why CharIO is needed exactly. For my purposes of debug output via UART, the write! macro with FormatWriter implementation works perfect.

@farcaller
Copy link
Member

There was no fmt in core (and libcore) at the time that was created. I'm totally fine with deprecating it (write! macro is just slightly more verbose).

@archaelus
Copy link

👍 I just implemented this on my teensy/k20 branch of zinc - https://github.com/archaelus/zinc/blob/k20_72/src/hal/k20/uart.rs#L188-L198 It's a tiny amount of code, and quite a bit easier to use than CharIO.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants