diff options
Diffstat (limited to 'cortex-m-rt/examples/qemu.rs')
-rw-r--r-- | cortex-m-rt/examples/qemu.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cortex-m-rt/examples/qemu.rs b/cortex-m-rt/examples/qemu.rs index 7553e70..e903404 100644 --- a/cortex-m-rt/examples/qemu.rs +++ b/cortex-m-rt/examples/qemu.rs @@ -2,11 +2,8 @@ #![no_main] #![no_std] - extern crate cortex_m; extern crate cortex_m_rt as rt; - -#[cfg(not(armv8m))] extern crate cortex_m_semihosting as semihosting; extern crate panic_halt; @@ -14,7 +11,6 @@ extern crate panic_halt; use cortex_m::asm; use rt::entry; -#[cfg(not(armv8m))] #[entry] fn main() -> ! { use core::fmt::Write; @@ -30,11 +26,3 @@ fn main() -> ! { semihosting::debug::exit(semihosting::debug::EXIT_SUCCESS); } } - -#[cfg(armv8m)] -#[entry] -fn main() -> ! { - loop { - asm::nop(); - } -} |