Macro rtt_target::rprint
source · macro_rules! rprint { (=> $terminal:expr, $s:expr) => { ... }; (=> $terminal:expr, $($arg:tt)*) => { ... }; ($s:expr) => { ... }; ($($arg:tt)*) => { ... }; }
Expand description
Prints to the print RTT channel. Works just like the standard print
.
Before use the print channel has to be set with rtt_init_print
or set_print_channel
. If
the channel isn’t set, the message is silently discarded.
The macro also supports output to multiple virtual terminals on the channel. Use the syntax
rprint!(=> 1, "Hello!");
to write to terminal number 1, for example. Terminal numbers
range from 0 to 15.