diff options
author | 2019-12-09 20:24:44 -0500 | |
---|---|---|
committer | 2019-12-10 07:47:24 -0500 | |
commit | 43d43bd5c84631fc183f42bc9651e0a076a06f65 (patch) | |
tree | 8b5247bb3ba7a7e7e8deb1575012fbf77dde0fe3 /cortex-m-rt/src | |
parent | af3ee92cb7f9b76a7ebe9a64aa15d5d2c39e377a (diff) | |
download | cortex-m-43d43bd5c84631fc183f42bc9651e0a076a06f65.tar.gz cortex-m-43d43bd5c84631fc183f42bc9651e0a076a06f65.tar.zst cortex-m-43d43bd5c84631fc183f42bc9651e0a076a06f65.zip |
Remove 'extern crate cortex_m_rt' from macros
See justification on 519d46a. Using 'extern crate cortex_m_rt'
inside of the macros limits our ability to use the macros
crate in other contexts. As long as another crate publicly
exports an enumeration of `interrupt` and an enumeration
of `exception`, the macros crate may be used in other
cortex-m-rt-like systems.
Diffstat (limited to 'cortex-m-rt/src')
-rw-r--r-- | cortex-m-rt/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index 85d9496..8bfdd69 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -599,6 +599,8 @@ pub enum Exception { SysTick, } +pub use self::Exception as exception; + extern "C" { fn NonMaskableInt(); |