dev: change name to bits

This commit is contained in:
Liu Hancheng 2025-01-02 12:47:13 +08:00
parent a3a8dee579
commit 90b4164426
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ impl<'d, T: CoreInstance> Timer<'d, T> {
} }
/// get the capability of the timer /// get the capability of the timer
pub fn get_bits(&self) -> TimerBits { pub fn bits(&self) -> TimerBits {
T::BITS T::BITS
} }

View File

@ -409,7 +409,7 @@ macro_rules! impl_waveform_chx {
..Default::default() ..Default::default()
}; };
match self.inner.get_bits() { match self.inner.bits() {
TimerBits::Bits16 => { TimerBits::Bits16 => {
// the data must be aligned to double words // the data must be aligned to double words
assert!(duty.len() % 2 == 0); assert!(duty.len() % 2 == 0);