aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-06-23 16:00:38 -0500
committerGravatar Jorge Aparicio <jorge@japaric.io> 2017-06-30 18:08:28 -0500
commit85f78eb40a432801e7f1a2633d8e825235b1aca4 (patch)
tree7f09496ebba91288c2a3bebe15fe8c4ccafc6277 /src/lib.rs
parent39875a3f538f64134bfe3b1619316bee4b3f39f3 (diff)
downloadcortex-m-85f78eb40a432801e7f1a2633d8e825235b1aca4.tar.gz
cortex-m-85f78eb40a432801e7f1a2633d8e825235b1aca4.tar.zst
cortex-m-85f78eb40a432801e7f1a2633d8e825235b1aca4.zip
revamp the exception registration mechanism
[breaking-change]
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7e9c6fb..9cbedb4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,12 +8,13 @@
//! - Data structures like the vector table
//! - Safe wrappers around assembly instructions like `bkpt`
-#![cfg_attr(target_arch = "arm", feature(core_intrinsics))]
#![deny(missing_docs)]
#![deny(warnings)]
#![feature(asm)]
#![feature(const_fn)]
+#![feature(linkage)]
#![feature(naked_functions)]
+#![feature(used)]
#![no_std]
extern crate aligned;
@@ -25,17 +26,8 @@ mod macros;
#[macro_use]
pub mod asm;
-pub mod ctxt;
pub mod exception;
pub mod interrupt;
pub mod itm;
pub mod peripheral;
pub mod register;
-
-/// A reserved spot in the vector table
-#[derive(Clone, Copy)]
-#[repr(u32)]
-pub enum Reserved {
- /// Reserved
- Vector = 0,
-}