Skip to content

Commit aef25a4

Browse files
committed
dcb: improve enable_trace documentation
1 parent 2c99e80 commit aef25a4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/peripheral/dcb.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use volatile_register::{RW, WO};
44

5-
use crate::peripheral::DCB;
5+
use crate::peripheral::{DCB, DWT, ITM};
66
use core::ptr;
77

88
const DCB_DEMCR_TRCENA: u32 = 1 << 24;
@@ -22,10 +22,7 @@ pub struct RegisterBlock {
2222
}
2323

2424
impl DCB {
25-
/// Enables TRACE. This is for example required by the
26-
/// `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.
25+
/// Global enable for all [`DWT`] and [`ITM`] features.
2926
///
3027
/// Note: vendor-specific registers may have to be set to completely
3128
/// enable tracing. For example, on the STM32F401RE, `TRACE_MODE`

0 commit comments

Comments
 (0)