[−][src]Module cortex_m_log::printer::semihosting
Semihosting module
Semihosting can direct to either stdout or stderr, which is determined by second type parameter
Example
use cortex_m_log::printer::Printer; use cortex_m_log::printer::semihosting; use cortex_m_log::printer::semihosting::Semihosting; use cortex_m_log::modes::InterruptFree; //Create new printer to stdout with interrupt free mode let mut shost = Semihosting::<InterruptFree, _>::stdout().unwrap(); shost.println(format_args!("Write interrupt free to {}", "stdout")); //Create new printer to stderr without need for interrupt control using special alias let mut shost = semihosting::InterruptOk::<_>::stderr().unwrap(); shost.println(format_args!("Write to {}", "stderr"));
Modules
hio | Host I/O |
Structs
Semihosting | Semihosting backed printer |
Type Definitions
InterruptFree | Alias for Interrupt free Printer |
InterruptOk | Alias for Printer without control over interrupts |