We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c99e80 commit 189c3e4Copy full SHA for 189c3e4
src/peripheral/dcb.rs
@@ -3,6 +3,8 @@
3
use volatile_register::{RW, WO};
4
5
use crate::peripheral::DCB;
6
+#[allow(unused_imports)]
7
+use crate::peripheral::{DWT, ITM};
8
use core::ptr;
9
10
const DCB_DEMCR_TRCENA: u32 = 1 << 24;
@@ -22,10 +24,7 @@ pub struct RegisterBlock {
22
24
}
23
25
26
impl DCB {
- /// Enables TRACE. This is for example required by the
- /// `peripheral::DWT` cycle counter to work properly.
27
- /// As by STM documentation, this flag is not reset on
28
- /// soft-reset, only on power reset.
+ /// Global enable for all [`DWT`] and [`ITM`] features.
29
///
30
/// Note: vendor-specific registers may have to be set to completely
31
/// enable tracing. For example, on the STM32F401RE, `TRACE_MODE`
0 commit comments