diff options
author | 2020-11-25 23:27:17 +0100 | |
---|---|---|
committer | 2020-12-02 22:22:22 +0100 | |
commit | 1f2c3eb66db51ad94af5664b0f1d3b3c0f43c570 (patch) | |
tree | d89963728b0459315802b6469a896a7ecc0b5e1f /src/register | |
parent | 038396e6f944fb8697e2d4ecbd88cfca9d16b90e (diff) | |
download | cortex-m-1f2c3eb66db51ad94af5664b0f1d3b3c0f43c570.tar.gz cortex-m-1f2c3eb66db51ad94af5664b0f1d3b3c0f43c570.tar.zst cortex-m-1f2c3eb66db51ad94af5664b0f1d3b3c0f43c570.zip |
Deprecate msp::write
Diffstat (limited to 'src/register')
-rw-r--r-- | src/register/msp.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/register/msp.rs b/src/register/msp.rs index 2e8261e..78f507c 100644 --- a/src/register/msp.rs +++ b/src/register/msp.rs @@ -8,6 +8,7 @@ pub fn read() -> u32 { /// Writes `bits` to the CPU register #[inline] +#[deprecated = "calling this function invokes Undefined Behavior"] pub unsafe fn write(bits: u32) { call_asm!(__msp_w(bits: u32)); } |