Skip to content

Commit f8e17d8

Browse files
committed
fixup panic-itm too
1 parent 2785022 commit f8e17d8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

panic-itm/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- changed `ITM::ptr()` to `ITM::PTR` as the `ptr()` functions are
11+
deprecated (#386).
12+
1013
## [v0.4.2] - 2020-11-14
1114

1215
- Support cortex-m v0.7.0

panic-itm/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use cortex_m::peripheral::ITM;
4646
fn panic(info: &PanicInfo) -> ! {
4747
interrupt::disable();
4848

49-
let itm = unsafe { &mut *ITM::ptr() };
49+
let itm = unsafe { &mut *ITM::PTR };
5050
let stim = &mut itm.stim[0];
5151

5252
iprintln!(stim, "{}", info);

0 commit comments

Comments
 (0)