Embassy
embassy-usb-logger

Crates

git

Versions

default

Flavors

Macro embassy_usb_logger::run

source ·
macro_rules! run {
    ( $x:expr, $l:expr, $p:ident ) => { ... };
}
Expand description

Initialize and run the USB serial logger, never returns.

Arguments specify the buffer size, log level and the USB driver, respectively.

§Usage

embassy_usb_logger::run!(1024, log::LevelFilter::Info, driver);

§Safety

This macro should only be invoked only once since it is setting the global logging state of the application.