We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2785022 commit f8e17d8Copy full SHA for f8e17d8
panic-itm/CHANGELOG.md
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
8
## [Unreleased]
9
10
+- changed `ITM::ptr()` to `ITM::PTR` as the `ptr()` functions are
11
+ deprecated (#386).
12
+
13
## [v0.4.2] - 2020-11-14
14
15
- Support cortex-m v0.7.0
panic-itm/src/lib.rs
@@ -46,7 +46,7 @@ use cortex_m::peripheral::ITM;
46
fn panic(info: &PanicInfo) -> ! {
47
interrupt::disable();
48
49
- let itm = unsafe { &mut *ITM::ptr() };
+ let itm = unsafe { &mut *ITM::PTR };
50
let stim = &mut itm.stim[0];
51
52
iprintln!(stim, "{}", info);
0 commit comments