rust-embedded / embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems
Apache License 2.0
2.01k stars 202 forks source link

[Feature] Logging and debugging #460

Closed elpiel closed 1 year ago

elpiel commented 1 year ago

It would be nice if some of the main structs like spi::Polarity have Debug implemented or defmt::Format somehow, e.g. with a feature.

One thing I'm caution with though is not to rely on any single logging crate.

Other formats like bincode could also benefit from such a no_std improvement

MabezDev commented 1 year ago

There are defmt::Format derives on most structs behind the defmt-03 feature now, so I think this can be closed.