We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82d027 commit c1163c7Copy full SHA for c1163c7
cortex-m/src/peripheral/syst.rs
@@ -1,4 +1,18 @@
1
//! SysTick: System Timer
2
+//!
3
+//! # Example
4
5
+//! ```no_run
6
+//! use cortex_m::peripheral::{Peripherals, SYST};
7
8
+//! let core_periph = cortex_m::peripheral::Peripherals::take().unwrap();
9
+//! let mut syst = core_periph.SYST;
10
+//! syst.set_reload(0xffffff);
11
+//! syst.clear_current();
12
+//! syst.enable_counter();
13
14
+//! let syst_value: u32 = SYST::get_current();
15
+//! ```
16
17
use volatile_register::{RO, RW};
18
0 commit comments