From e2c866119f941a1fa54e95b91076d1e299757bdb Mon Sep 17 00:00:00 2001 From: Liu Hancheng Date: Wed, 1 Jan 2025 17:24:00 +0800 Subject: [PATCH] doc: add doc for timer get_bits fn --- embassy-stm32/src/timer/low_level.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-stm32/src/timer/low_level.rs b/embassy-stm32/src/timer/low_level.rs index 448069ab3..a9c6dc303 100644 --- a/embassy-stm32/src/timer/low_level.rs +++ b/embassy-stm32/src/timer/low_level.rs @@ -235,6 +235,7 @@ impl<'d, T: CoreInstance> Timer<'d, T> { self.regs_core().cnt().write(|r| r.set_cnt(0)); } + /// get the capability of the timer pub fn get_bits(&self) -> TimerBits { T::BITS }