Skip to content

Commit

Permalink
Workaround for loop {} until it is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
korken89 committed Nov 20, 2018
1 parent f47d163 commit f9570c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Expand Up @@ -7,10 +7,13 @@ extern crate panic_halt; // you can put a breakpoint on `rust_begin_unwind` to c
// extern crate panic_itm; // logs messages over ITM; requires ITM support
// extern crate panic_semihosting; // logs messages to the host stderr; requires a debugger

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 f9570c7

Please sign in to comment.