Skip to content

Commit 669c872

Browse files
committed
dwt: feature gate trace and PC samples out of armv6m
1 parent 085e738 commit 669c872

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/peripheral/dwt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl DWT {
9999
}
100100

101101
/// Whether to enable exception tracing
102-
// TODO find out if this is supported om armv6m
102+
#[cfg(not(armv6m))]
103103
#[inline]
104104
pub fn enable_exception_tracing(&mut self, bit: bool) {
105105
unsafe {
@@ -111,7 +111,7 @@ impl DWT {
111111
}
112112

113113
/// Whether to periodically generate PC samples
114-
// TODO find out if this is supported on armv6m
114+
#[cfg(not(armv6m))]
115115
#[inline]
116116
pub fn enable_pc_samples(&mut self, bit: bool) {
117117
unsafe {
@@ -210,8 +210,8 @@ impl Comparator {
210210
// don't compare data value
211211
r.set_datavmatch(false);
212212

213-
// dont compare cycle counter value
214-
// NOTE: only needed forp comparator 0, but is SBZP.
213+
// don't compare cycle counter value
214+
// NOTE: only needed for comparator 0, but is SBZP.
215215
r.set_cycmatch(false);
216216

217217
// FUNCTION, EMITRANGE

0 commit comments

Comments
 (0)