File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 77
77
78
78
r
79
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
+ #[ inline]
86
+ pub fn free < F , R > ( _: F ) -> R
87
+ where
88
+ F : FnOnce ( & CriticalSection ) -> R ,
89
+ {
90
+ panic ! ( "cortex_m::interrupt::free() is only functional on cortex-m platforms" ) ;
91
+ }
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ impl TPIU {
118
118
/// [`trace_output_protocol`](Self::set_trace_output_protocol).
119
119
#[ inline]
120
120
pub fn trace_output_protocol ( & self ) -> Option < TraceProtocol > {
121
- use core:: convert:: TryInto ;
122
121
self . sppr . read ( ) . txmode ( ) . try_into ( ) . ok ( )
123
122
}
124
123
You can’t perform that action at this time.
0 commit comments