diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/exception.rs | 3 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/exception.rs b/src/exception.rs index 8343d99..ffe9f39 100644 --- a/src/exception.rs +++ b/src/exception.rs @@ -155,9 +155,6 @@ pub unsafe extern "C" fn default_handler<T>(_token: &T) { // stack frame #[cfg(target_arch = "arm")] extern "C" fn handler(_sr: &StackedRegisters) -> ! { - #[cfg(feature = "semihosting")] - hprintln!("EXCEPTION {:?} @ PC=0x{:08x}", Exception::current(), _sr.pc); - ::asm::bkpt(); loop {} @@ -8,7 +8,7 @@ //! - Data structures like the vector table //! - Safe wrappers around assembly instructions like `bkpt` -#![cfg_attr(feature = "semihosting", feature(macro_reexport))] +#![feature(macro_reexport)] #![cfg_attr(target_arch = "arm", feature(core_intrinsics))] #![deny(missing_docs)] #![deny(warnings)] @@ -17,7 +17,6 @@ #![feature(naked_functions)] #![no_std] -#[cfg(feature = "semihosting")] pub extern crate cortex_m_semihosting as semihosting; extern crate volatile_register; |