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 2303279 commit f6c508fCopy full SHA for f6c508f
src/lib.rs
@@ -36,6 +36,7 @@ impl<const TIMER_HZ: u32> DwtSystick<TIMER_HZ> {
36
#[inline(always)]
37
pub fn new(dcb: &mut DCB, dwt: DWT, systick: SYST, sysclk: u32) -> Self {
38
assert!(TIMER_HZ == sysclk);
39
+ assert!(DWT::has_cycle_counter());
40
41
dcb.enable_trace();
42
DWT::unlock();
0 commit comments