diff options
author | 2017-03-11 19:47:57 -0500 | |
---|---|---|
committer | 2017-03-11 19:47:57 -0500 | |
commit | e666c0b79eb520e16c75bef4cfc085c1dfe72b06 (patch) | |
tree | 7e95c28e539793dbd4cf8f1385ad8f2f0b823c0a /src/interrupt.rs | |
parent | 6db72a50f302f6bd3974488a9d681dac26cd72c2 (diff) | |
download | cortex-m-e666c0b79eb520e16c75bef4cfc085c1dfe72b06.tar.gz cortex-m-e666c0b79eb520e16c75bef4cfc085c1dfe72b06.tar.zst cortex-m-e666c0b79eb520e16c75bef4cfc085c1dfe72b06.zip |
make ITM functions operate on `Stim`
push synchronization duties to the caller
Diffstat (limited to 'src/interrupt.rs')
-rw-r--r-- | src/interrupt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs index 2aff77e..6c84301 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -34,7 +34,7 @@ pub unsafe trait Nr { unsafe impl<T> Sync for Mutex<T> {} -/// Disable interrupts, globally +/// Disables all interrupts #[inline(always)] pub fn disable() { match () { @@ -51,7 +51,7 @@ pub fn disable() { } } -/// Enable interrupts, globally +/// Enables all the interrupts #[inline(always)] pub fn enable() { match () { |