aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md6
-rw-r--r--src/register/msp.rs1
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e6d8ef7..27cc20b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- New assembly methods `asm::semihosting_syscall`, `asm::bootstrap`, and
`asm::bootload`.
+### Changed
+
+- `msp::write` has been deprecated in favor of `asm::bootstrap`. It was not
+ possible to use `msp::write` without causing Undefined Behavior, so all
+ existing users are encouraged to migrate.
+
## [v0.7.0] - 2020-11-09
### Added
diff --git a/src/register/msp.rs b/src/register/msp.rs
index 2e8261e..78f507c 100644
--- a/src/register/msp.rs
+++ b/src/register/msp.rs
@@ -8,6 +8,7 @@ pub fn read() -> u32 {
/// Writes `bits` to the CPU register
#[inline]
+#[deprecated = "calling this function invokes Undefined Behavior"]
pub unsafe fn write(bits: u32) {
call_asm!(__msp_w(bits: u32));
}