Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cortex-m/src/peripheral/dwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@ pub struct Comparator {

// DWT CTRL register fields
const NUMCOMP_OFFSET: u32 = 28;
#[cfg(not(armv6m))]
const NOTRCPKT: u32 = 1 << 27;
#[cfg(not(armv6m))]
const NOEXTTRIG: u32 = 1 << 26;
#[cfg(not(armv6m))]
const NOCYCCNT: u32 = 1 << 25;
#[cfg(not(armv6m))]
const NOPRFCNT: u32 = 1 << 24;
#[cfg(not(armv6m))]
const CYCCNTENA: u32 = 1 << 0;

impl DWT {
Expand Down
1 change: 1 addition & 0 deletions cortex-m/src/peripheral/scb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use core::arch::asm;
use core::ptr;
#[cfg(any(armv7m, armv8m))]
use core::sync::atomic::{Ordering, compiler_fence};
#[cfg(not(armv6m))]
use cortex_m_macros::asm_cfg;
use volatile_register::RW;

Expand Down
Loading