[][src]Function drone_cortex_m::itm::write_fmt

pub fn write_fmt(address: usize, args: Arguments)

Writes args to the stimulus port number address.

The presence of a debug probe is not checked, so it is recommended to use it together with is_port_enabled.

Examples

use drone_cortex_m::itm;

let a = 0;

if itm::is_port_enabled(11) {
    itm::write_fmt(11, format_args!("a = {}\n", a));
}