Skip to content

Commit

Permalink
dcb: improve enable_trace documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmplt committed Jan 14, 2022
1 parent 2c99e80 commit aef25a4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/peripheral/dcb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use volatile_register::{RW, WO};

use crate::peripheral::DCB;
use crate::peripheral::{DCB, DWT, ITM};
use core::ptr;

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

impl DCB {
/// Enables TRACE. This is for example required by the
/// `peripheral::DWT` cycle counter to work properly.
/// As by STM documentation, this flag is not reset on
/// soft-reset, only on power reset.
/// Global enable for all [`DWT`] and [`ITM`] features.
///
/// Note: vendor-specific registers may have to be set to completely
/// enable tracing. For example, on the STM32F401RE, `TRACE_MODE`
Expand Down

0 comments on commit aef25a4

Please sign in to comment.