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.
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);
§Safety
This macro should only be invoked only once since it is setting the global logging state of the application.