diff options
-rw-r--r-- | src/peripheral/dwt.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peripheral/dwt.rs b/src/peripheral/dwt.rs index 188681b..73f90ce 100644 --- a/src/peripheral/dwt.rs +++ b/src/peripheral/dwt.rs @@ -103,28 +103,28 @@ impl DWT { #[cfg(not(armv6m))] #[inline] pub fn has_exception_trace(&self) -> bool { - self.ctrl.read().notrcpkt() == false + !self.ctrl.read().notrcpkt() } /// Returns `true` if the implementation includes external match signals #[cfg(not(armv6m))] #[inline] pub fn has_external_match(&self) -> bool { - self.ctrl.read().noexttrig() == false + !self.ctrl.read().noexttrig() } /// Returns `true` if the implementation supports a cycle counter #[cfg(not(armv6m))] #[inline] pub fn has_cycle_counter(&self) -> bool { - self.ctrl.read().nocyccnt() == false + !self.ctrl.read().nocyccnt() } /// Returns `true` if the implementation the profiling counters #[cfg(not(armv6m))] #[inline] pub fn has_profiling_counter(&self) -> bool { - self.ctrl.read().noprfcnt() == false + !self.ctrl.read().noprfcnt() } /// Enables the cycle counter |