We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39dfb3 commit f3a4818Copy full SHA for f3a4818
src/interrupt.rs
@@ -77,3 +77,14 @@ where
77
78
r
79
}
80
+
81
+// Make a `free()` function available to allow checking dependencies without specifying a target,
82
+// but that will panic at runtime if executed.
83
+#[doc(hidden)]
84
+#[cfg(not(cortex_m))]
85
+pub fn free<F, R>(_: F) -> R
86
+where
87
+ F: FnOnce(&CriticalSection) -> R,
88
+{
89
+ panic!("cortex_m::interrupt::free() is only functional on cortex-m platforms");
90
+}
src/peripheral/tpiu.rs
@@ -118,7 +118,6 @@ impl TPIU {
118
/// [`trace_output_protocol`](Self::set_trace_output_protocol).
119
#[inline]
120
pub fn trace_output_protocol(&self) -> Option<TraceProtocol> {
121
- use core::convert::TryInto;
122
self.sppr.read().txmode().try_into().ok()
123
124
0 commit comments