diff options
author | 2022-01-06 14:04:53 -0800 | |
---|---|---|
committer | 2022-01-06 14:08:35 -0800 | |
commit | 9e098a493ac80dbd4f15528a470250c77de16478 (patch) | |
tree | 1169f9bf87f04a8b5a910a02a1887881eb94526e /panic-itm/src | |
parent | ef049c93808cf46e5151d2cc0b0ca0b00f90be10 (diff) | |
download | cortex-m-9e098a493ac80dbd4f15528a470250c77de16478.tar.gz cortex-m-9e098a493ac80dbd4f15528a470250c77de16478.tar.zst cortex-m-9e098a493ac80dbd4f15528a470250c77de16478.zip |
remove the ptr() function in favor of the PTR constant
Per #370/#235, the const fn ptr() was supposed to be deprecated and
subsequently removed. This PR removes it for the master branch tracking
the 0.8 release
Diffstat (limited to 'panic-itm/src')
-rw-r--r-- | panic-itm/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |