aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exception.rs3
-rw-r--r--src/lib.rs3
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 {}
diff --git a/src/lib.rs b/src/lib.rs
index 9bdd74c..05fcee5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;