Skip to content

Commit 2ec2888

Browse files
Merge pull request #590 from jannic/issue-570-backport
Mark lr::write as deprecated
2 parents 2666964 + bccd809 commit 2ec2888

8 files changed

+4
-0
lines changed

bin/thumbv6m-none-eabi-lto.a

32 Bytes
Binary file not shown.

bin/thumbv7em-none-eabi-lto.a

36 Bytes
Binary file not shown.

bin/thumbv7em-none-eabihf-lto.a

36 Bytes
Binary file not shown.

bin/thumbv7m-none-eabi-lto.a

40 Bytes
Binary file not shown.

bin/thumbv8m.base-none-eabi-lto.a

36 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabi-lto.a

36 Bytes
Binary file not shown.

bin/thumbv8m.main-none-eabihf-lto.a

36 Bytes
Binary file not shown.

src/register/lr.rs

+4
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)