17 lines
274 B
Rust
17 lines
274 B
Rust
//! Prints "Hello, world!" on the host console using semihosting
|
|
|
|
#![no_main]
|
|
#![no_std]
|
|
|
|
use panic_halt as _;
|
|
|
|
use cortex_m_rt::entry;
|
|
use cortex_m_semihosting::hprintln;
|
|
|
|
#[entry]
|
|
fn main() -> ! {
|
|
hprintln!("Hello, world!");//.unwrap();
|
|
|
|
loop {}
|
|
}
|