pub struct SDIPrint;Implementations§
Source§impl SDIPrint
impl SDIPrint
pub fn enable()
pub fn is_busy() -> bool
Sourcepub fn write_str_lossy(s: &str) -> Result
pub fn write_str_lossy(s: &str) -> Result
Write, giving up (and dropping the rest of the message) once a chunk
waits longer than [SPINS] iterations.
SDI print is only drained while the debugger has it armed
(wlink --enable-sdi-print). With it disarmed the blocking
[core::fmt::Write] impl spins forever on the second chunk — which is
fine for a core that has nothing else to do, but not for a core in a
control loop (or on hart 1, which must not stall behind a console).