Skip to content

Commit 1f2c3eb

Browse files
Deprecate msp::write
1 parent 038396e commit 1f2c3eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/register/msp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub fn read() -> u32 {
88

99
/// Writes `bits` to the CPU register
1010
#[inline]
11+
#[deprecated = "calling this function invokes Undefined Behavior"]
1112
pub unsafe fn write(bits: u32) {
1213
call_asm!(__msp_w(bits: u32));
1314
}

0 commit comments

Comments
 (0)