diff options
author | 2022-01-08 18:56:33 -0800 | |
---|---|---|
committer | 2022-01-08 18:56:33 -0800 | |
commit | f8e17d80e12dc35d9d5cf1a45e06abc48678b694 (patch) | |
tree | 1ca4c100db43e8f9af2a371a06cc2d12d3586e39 | |
parent | 2785022ab5fadaaccbdb60b544f4a43b650f146c (diff) | |
download | cortex-m-f8e17d80e12dc35d9d5cf1a45e06abc48678b694.tar.gz cortex-m-f8e17d80e12dc35d9d5cf1a45e06abc48678b694.tar.zst cortex-m-f8e17d80e12dc35d9d5cf1a45e06abc48678b694.zip |
fixup panic-itm too
-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); |