Skip to content

Commit

Permalink
Update qemu code slightly to better align with example
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter Smit committed Nov 18, 2024
1 parent ddbf1b4 commit 840fb6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/start/qemu.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,13 @@ For convenience here are the most important parts of the source code in `src/mai
use panic_halt as _;
use cortex_m::asm;
use cortex_m_rt::entry;
#[entry]
fn main() -> ! {
asm::nop(); // To not have main optimize to abort in release mode, remove when you add code
loop {
// your code goes here
}
Expand Down

0 comments on commit 840fb6f

Please sign in to comment.