We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a8438 commit a41ceebCopy full SHA for a41ceeb
testsuite/src/main.rs
@@ -29,10 +29,10 @@ mod tests {
29
#[test]
30
#[cfg(not(feature = "semihosting"))] // QEMU does not model the cycle counter
31
fn cycle_count(p: &mut cortex_m::Peripherals) {
32
+ use cortex_m::peripheral::DWT;
33
+
34
#[cfg(not(armv6m))]
35
{
- use cortex_m::peripheral::DWT;
-
36
assert!(DWT::has_cycle_counter());
37
38
p.DCB.enable_trace();
0 commit comments