File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1010//! ``` no_run
1111//! # use cortex_m::peripheral::Peripherals;
1212//! let mut peripherals = Peripherals::take().unwrap();
13- //! peripherals.DWT.enable_cycle_counter ();
13+ //! peripherals.DCB.enable_trace ();
1414//! ```
1515//!
1616//! This method can only be successfully called *once* -- this is why the method returns an
2929//! # use cortex_m::peripheral::{DWT, Peripherals};
3030//! {
3131//! let mut peripherals = Peripherals::take().unwrap();
32+ //! peripherals.DCB.enable_trace();
3233//! peripherals.DWT.enable_cycle_counter();
3334//! } // all the peripheral singletons are destroyed here
3435//!
4445//! # use cortex_m::peripheral::{DWT, Peripherals};
4546//! {
4647//! let mut peripherals = Peripherals::take().unwrap();
48+ //! peripherals.DCB.enable_trace();
4749//! peripherals.DWT.enable_cycle_counter();
4850//! } // all the peripheral singletons are destroyed here
4951//!
You can’t perform that action at this time.
0 commit comments