aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/timer/low_level.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/timer/low_level.rs b/embassy-stm32/src/timer/low_level.rs
index 294dff7ea..aa73986ea 100644
--- a/embassy-stm32/src/timer/low_level.rs
+++ b/embassy-stm32/src/timer/low_level.rs
@@ -321,6 +321,11 @@ impl<'d, T: CoreInstance> Timer<'d, T> {
321 } 321 }
322 } 322 }
323 } 323 }
324
325 /// Get the clock frequency of the timer (before prescaler is applied).
326 pub fn get_clock_frequency(&self) -> Hertz {
327 T::frequency()
328 }
324} 329}
325 330
326impl<'d, T: BasicNoCr2Instance> Timer<'d, T> { 331impl<'d, T: BasicNoCr2Instance> Timer<'d, T> {