diff options
-rw-r--r-- | panic-itm/CHANGELOG.md | 3 | ||||
-rw-r--r-- | panic-itm/src/lib.rs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/panic-itm/CHANGELOG.md b/panic-itm/CHANGELOG.md index 75a5a5e..1ff2fc0 100644 --- a/panic-itm/CHANGELOG.md +++ b/panic-itm/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +- changed `ITM::ptr()` to `ITM::PTR` as the `ptr()` functions are + deprecated (#386). + ## [v0.4.2] - 2020-11-14 - Support cortex-m v0.7.0 diff --git a/panic-itm/src/lib.rs b/panic-itm/src/lib.rs index d85ecb7..8a2c248 100644 --- a/panic-itm/src/lib.rs +++ b/panic-itm/src/lib.rs @@ -46,7 +46,7 @@ use cortex_m::peripheral::ITM; fn panic(info: &PanicInfo) -> ! { interrupt::disable(); - let itm = unsafe { &mut *ITM::ptr() }; + let itm = unsafe { &mut *ITM::PTR }; let stim = &mut itm.stim[0]; iprintln!(stim, "{}", info); |