File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 10
10
//! ``` no_run
11
11
//! # use cortex_m::peripheral::Peripherals;
12
12
//! let mut peripherals = Peripherals::take().unwrap();
13
- //! peripherals.DWT.enable_cycle_counter ();
13
+ //! peripherals.DCB.enable_trace ();
14
14
//! ```
15
15
//!
16
16
//! This method can only be successfully called *once* -- this is why the method returns an
29
29
//! # use cortex_m::peripheral::{DWT, Peripherals};
30
30
//! {
31
31
//! let mut peripherals = Peripherals::take().unwrap();
32
+ //! peripherals.DCB.enable_trace();
32
33
//! peripherals.DWT.enable_cycle_counter();
33
34
//! } // all the peripheral singletons are destroyed here
34
35
//!
44
45
//! # use cortex_m::peripheral::{DWT, Peripherals};
45
46
//! {
46
47
//! let mut peripherals = Peripherals::take().unwrap();
48
+ //! peripherals.DCB.enable_trace();
47
49
//! peripherals.DWT.enable_cycle_counter();
48
50
//! } // all the peripheral singletons are destroyed here
49
51
//!
You can’t perform that action at this time.
0 commit comments