diff options
author | 2021-09-24 05:41:35 +0200 | |
---|---|---|
committer | 2021-09-24 05:41:35 +0200 | |
commit | 669c872a29921260e1e9f03f7592397c60fdbc07 (patch) | |
tree | 8d3b43b0fde9fecfbebb0c464fdbb861f9f4d196 /src | |
parent | 085e738359d03c7a72ecb6e8c1b05c2ad27e982f (diff) | |
download | cortex-m-669c872a29921260e1e9f03f7592397c60fdbc07.tar.gz cortex-m-669c872a29921260e1e9f03f7592397c60fdbc07.tar.zst cortex-m-669c872a29921260e1e9f03f7592397c60fdbc07.zip |
dwt: feature gate trace and PC samples out of armv6m
Diffstat (limited to 'src')
-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 4097c8d..57c9063 100644 --- a/src/peripheral/dwt.rs +++ b/src/peripheral/dwt.rs @@ -99,7 +99,7 @@ impl DWT { } /// Whether to enable exception tracing - // TODO find out if this is supported om armv6m + #[cfg(not(armv6m))] #[inline] pub fn enable_exception_tracing(&mut self, bit: bool) { unsafe { @@ -111,7 +111,7 @@ impl DWT { } /// Whether to periodically generate PC samples - // TODO find out if this is supported on armv6m + #[cfg(not(armv6m))] #[inline] pub fn enable_pc_samples(&mut self, bit: bool) { unsafe { @@ -210,8 +210,8 @@ impl Comparator { // don't compare data value r.set_datavmatch(false); - // dont compare cycle counter value - // NOTE: only needed forp comparator 0, but is SBZP. + // don't compare cycle counter value + // NOTE: only needed for comparator 0, but is SBZP. r.set_cycmatch(false); // FUNCTION, EMITRANGE |