diff options
author | 2019-06-19 07:24:40 +0200 | |
---|---|---|
committer | 2019-06-19 07:24:40 +0200 | |
commit | 40a60d3d9a6431604751e98f3b4aeb073329510e (patch) | |
tree | dc40f5f1cc3833b50747fa82d4d23f5e4eb189df /src/lib.rs | |
parent | e1a3d7a4c7c0ce058c1d9193d1417142c8621fe9 (diff) | |
download | cortex-m-40a60d3d9a6431604751e98f3b4aeb073329510e.tar.gz cortex-m-40a60d3d9a6431604751e98f3b4aeb073329510e.tar.zst cortex-m-40a60d3d9a6431604751e98f3b4aeb073329510e.zip |
add NVIC::{mask,unmask}
these are the "static method" (methods that don't take `self`) versions of
NVIC::{enable,disable} in the same vein as the existing NVIC::{pend,unpend}
this commit also deprecates the existing NVIC::{enable,disable} methods and
notes that NVIC::enable is unsound because it should be an `unsafe` method (like
interrupt::enable and basepri::write, it can break critical sections) but it's
marked as safe. Its replacement, NVIC::unmask, has the correct unsafety setting:
it's an `unsafe` function.
Diffstat (limited to 'src/lib.rs')
0 files changed, 0 insertions, 0 deletions