macro_rules! with_class {
( $x:expr, $l:expr, $p:ident ) => { ... };
( $x:expr, $l:expr, $p:ident, $h:ty ) => { ... };
}Expand description
Initialize the USB serial logger from a serial class and return the future to run it. The future never returns.
Arguments specify the buffer size, log level and the serial class, respectively. You can optionally add a RecieverHandler.
§Usage
embassy_usb_logger::with_class!(1024, log::LevelFilter::Info, class).await; //never returns.§Safety
This macro should only be invoked only once since it is setting the global logging state of the application.