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 ef728e8Copy full SHA for ef728e8
testsuite/src/main.rs
@@ -28,11 +28,12 @@ mod tests {
28
29
#[test]
30
#[cfg(not(feature = "semihosting"))] // QEMU does not model the cycle counter
31
+ #[cfg_attr(armv6m, allow(unused_variables))]
32
fn cycle_count(p: &mut cortex_m::Peripherals) {
33
+ use cortex_m::peripheral::DWT;
34
+
35
#[cfg(not(armv6m))]
36
{
- use cortex_m::peripheral::DWT;
-
37
assert!(DWT::has_cycle_counter());
38
39
p.DCB.enable_trace();
0 commit comments