aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-12-03 13:03:29 +0000
committerGravatar GitHub <noreply@github.com> 2020-12-03 13:03:29 +0000
commitd007eb90548666ced427e9dcaa4ae013433c3fff (patch)
treee314c88553a0fda651f4d6f807339c1b9d2e920f /src
parentd6fb22e0fe541595d0a710e5b4faa323171c18f4 (diff)
parentb376e0051e6b511ad30db9c3e8429041773e8bc4 (diff)
downloadcortex-m-d007eb90548666ced427e9dcaa4ae013433c3fff.tar.gz
cortex-m-d007eb90548666ced427e9dcaa4ae013433c3fff.tar.zst
cortex-m-d007eb90548666ced427e9dcaa4ae013433c3fff.zip
Merge #303
303: Update msp::write deprecation message r=adamgreig a=jonas-schievink Accidentally deleted from https://github.com/rust-embedded/cortex-m/pull/297 during rebase Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/register/msp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/register/msp.rs b/src/register/msp.rs
index 78f507c..bccc2ae 100644
--- a/src/register/msp.rs
+++ b/src/register/msp.rs
@@ -8,7 +8,7 @@ pub fn read() -> u32 {
/// Writes `bits` to the CPU register
#[inline]
-#[deprecated = "calling this function invokes Undefined Behavior"]
+#[deprecated = "calling this function invokes Undefined Behavior, consider asm::bootstrap as an alternative"]
pub unsafe fn write(bits: u32) {
call_asm!(__msp_w(bits: u32));
}