aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml6
-rw-r--r--src/exception.rs3
-rw-r--r--src/lib.rs3
3 files changed, 2 insertions, 10 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4f29858..bdd3a4c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,8 +12,4 @@ version = "0.2.0"
volatile-register = "0.2.0"
[dependencies.cortex-m-semihosting]
-optional = true
-version = "0.1.3"
-
-[features]
-semihosting = ["cortex-m-semihosting"] \ No newline at end of file
+version = "0.1.3" \ No newline at end of file
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;