Crate defmt_itm[][src]

Expand description

defmt global logger over ITM.

To use this crate, call the enable function before using the defmt logging macros

// src/main.rs or src/bin/my-app.rs

let p = cortex_m::Peripherals::take().unwrap();
defmt_itm::enable(p.ITM);

defmt::info!("Hello");

Functions

Enables defmt logging over the ITM stimulus port 0.