dev: change name to bits
This commit is contained in:
parent
a3a8dee579
commit
90b4164426
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user