mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
3af991ab63
- Allows classes to handle vendor requests. - Allows classes to use a single handler for multiple interfaces. - Allows classes to access the other events (previously only `reset` was available). |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
embassy-usb-logger
USB implementation of the log
crate. This logger can be used by any device that implements embassy-usb
. When running,
it will output all logging done through the log
facade to the USB serial peripheral.
Usage
Add the following embassy task to your application. The Driver
type is different depending on which HAL you use.
#[embassy_executor::task]
async fn logger_task(driver: Driver<'static, USB>) {
embassy_usb_logger::run!(1024, log::LevelFilter::Info, driver);
}