Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TDHolmes committed Oct 8, 2022
1 parent 49a8438 commit a41ceeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ mod tests {
#[test]
#[cfg(not(feature = "semihosting"))] // QEMU does not model the cycle counter
fn cycle_count(p: &mut cortex_m::Peripherals) {
use cortex_m::peripheral::DWT;

#[cfg(not(armv6m))]
{
use cortex_m::peripheral::DWT;

assert!(DWT::has_cycle_counter());

p.DCB.enable_trace();
Expand Down

0 comments on commit a41ceeb

Please sign in to comment.