We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50c7fd3 commit fcbda9eCopy full SHA for fcbda9e
src/peripheral/tpiu.rs
@@ -148,8 +148,8 @@ impl TPIU {
148
/// Reads the supported trace output modes and the minimum size of
149
/// the TPIU FIFO queue for trace data.
150
#[inline]
151
- pub fn swo_supports() -> SWOSupports {
152
- let _type = unsafe { (*Self::ptr())._type.read() };
+ pub fn swo_supports(&self) -> SWOSupports {
+ let _type = self._type.read();
153
SWOSupports {
154
nrz_encoding: _type.nrzvalid(),
155
manchester_encoding: _type.mancvalid(),
0 commit comments