diff options
author | 2022-01-06 14:04:53 -0800 | |
---|---|---|
committer | 2022-01-06 14:08:35 -0800 | |
commit | 9e098a493ac80dbd4f15528a470250c77de16478 (patch) | |
tree | 1169f9bf87f04a8b5a910a02a1887881eb94526e /src/peripheral/tpiu.rs | |
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 '')
-rw-r--r-- | src/peripheral/tpiu.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripheral/tpiu.rs b/src/peripheral/tpiu.rs index 5d2c2bb..0762495 100644 --- a/src/peripheral/tpiu.rs +++ b/src/peripheral/tpiu.rs @@ -150,7 +150,7 @@ impl TPIU { /// the TPIU FIFO queue for trace data. #[inline] pub fn swo_supports() -> SWOSupports { - let _type = unsafe { (*Self::ptr())._type.read() }; + let _type = unsafe { (*Self::PTR)._type.read() }; SWOSupports { nrz_encoding: _type.nrzvalid(), manchester_encoding: _type.mancvalid(), |