aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/tpiu.rs
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2022-02-24 17:31:00 +0000
committerGravatar Adam Greig <adam@adamgreig.com> 2022-02-24 17:34:32 +0000
commitdb8bea29e61d4659942539f8da7fe4f39c02729f (patch)
tree183c5108871faa40fe07ee60f8d503f65e004c0a /src/peripheral/tpiu.rs
parentc39dfb32f2c8a03a2d94c63fb8a9d0771d7c8c82 (diff)
downloadcortex-m-db8bea29e61d4659942539f8da7fe4f39c02729f.tar.gz
cortex-m-db8bea29e61d4659942539f8da7fe4f39c02729f.tar.zst
cortex-m-db8bea29e61d4659942539f8da7fe4f39c02729f.zip
Add a free() method for non-cortex-m build targets that panics, to allow checking code that uses it on native platform.
Diffstat (limited to 'src/peripheral/tpiu.rs')
-rw-r--r--src/peripheral/tpiu.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/peripheral/tpiu.rs b/src/peripheral/tpiu.rs
index 0762495..14dd35c 100644
--- a/src/peripheral/tpiu.rs
+++ b/src/peripheral/tpiu.rs
@@ -118,7 +118,6 @@ impl TPIU {
/// [`trace_output_protocol`](Self::set_trace_output_protocol).
#[inline]
pub fn trace_output_protocol(&self) -> Option<TraceProtocol> {
- use core::convert::TryInto;
self.sppr.read().txmode().try_into().ok()
}