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

src/main.rs

parent cdf0f5b5
Branches
No related tags found
No related merge requests found
//! Prints "Hello, world!" on the host console using semihosting
#![no_main]
#![no_std]
extern crate panic_halt;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
#[entry]
fn main() -> ! {
hprintln!("Hello, world!").unwrap();
loop {
continue;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment