Initial commit.

This commit is contained in:
2025-04-03 22:33:28 -04:00
commit a4df453ec9
20 changed files with 981 additions and 0 deletions

20
examples/hello.rs Normal file
View File

@@ -0,0 +1,20 @@
//! 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!");
// exit QEMU
// NOTE do not run this on hardware; it can corrupt OpenOCD state
// debug::exit(debug::EXIT_SUCCESS);
loop {}
}