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

23
src/main.rs Normal file
View File

@@ -0,0 +1,23 @@
#![no_std]
#![no_main]
// pick a panicking behavior
use panic_halt as _; // you can put a breakpoint on `rust_begin_unwind` to catch panics
// use panic_abort as _; // requires nightly
// use panic_itm as _; // logs messages over ITM; requires ITM support
// use panic_semihosting as _; // logs messages to the host stderr; requires a debugger
use cortex_m::asm;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
#[entry]
fn main() -> ! {
asm::nop(); // To not have main optimize to abort in release mode, remove when you add code
hprintln!("Hello, world!");
loop {
// your code goes here
asm::nop();
}
}