doc: add doc for timer get_bits fn

This commit is contained in:
Liu Hancheng 2025-01-01 17:24:00 +08:00
parent 99ce285397
commit e2c866119f

View File

@ -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
}