macro_rules! run { ( $x:expr, $l:expr, $p:ident ) => { ... }; ( $x:expr, $l:expr, $p:ident, $h:ty ) => { ... }; }
Expand description
Initialize and run the USB serial logger, never returns.
Arguments specify the buffer size, log level and the USB driver, respectively. You can optionally add a RecieverHandler.
§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.