Skip to content
Snippets Groups Projects
Commit e8ef0df2 authored by Per Lindgren's avatar Per Lindgren
Browse files

debug example

parent f2025c07
No related branches found
No related tags found
No related merge requests found
//! Using cortex-m-debug, for simple tracing
#![deny(unsafe_code)]
#![deny(warnings)]
#![no_std]
extern crate stm32f4x_hal;
// Convenient tracing over semihosting and ITM
#[macro_use]
extern crate cortex_m_debug;
fn main() {
ip!("ITM: Hello ");
ipln!("World! for the {} time", 50);
sp!("Semihosting: Hello ");
spln!("World! for the {} time", 50);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment