Skip to content

Commit ca14f92

Browse files
committed
Mark lr::write as deprecated
1 parent 2666964 commit ca14f92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/register/lr.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ pub fn read() -> u32 {
1111
/// Writes `bits` to the CPU register
1212
///
1313
/// **NOTE** This function is available if `cortex-m` is built with the `"inline-asm"` feature.
14+
///
15+
/// # Safety
16+
/// This function can't be used soundly.
1417
#[inline]
18+
#[deprecated = "This function can't be used soundly."]
1519
pub unsafe fn write(bits: u32) {
1620
call_asm!(__lr_w(bits: u32));
1721
}

0 commit comments

Comments
 (0)