Macro rstubs::device::serial

source ·
macro_rules! serial {
    (force: $($arg:tt)*) => { ... };
    ($($arg:tt)*) => { ... };
}
Expand description

Macro for printing to the serial console.

Locks the serial console and prints the message, including core, thread, file and line.

// lock console and print
serial!("Hello World!");
// if we want to print even if another one is printing
serial!(force: "Hello World!");