We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2666964 commit ca14f92Copy full SHA for ca14f92
src/register/lr.rs
@@ -11,7 +11,11 @@ pub fn read() -> u32 {
11
/// Writes `bits` to the CPU register
12
///
13
/// **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.
17
#[inline]
18
+#[deprecated = "This function can't be used soundly."]
19
pub unsafe fn write(bits: u32) {
20
call_asm!(__lr_w(bits: u32));
21
}
0 commit comments