stm32: do not use private constructor
This commit is contained in:
parent
17301c00e9
commit
4c01f033ea
@ -936,7 +936,7 @@ impl<'d, T: Instance, W: word::Word> Sai<'d, T, W> {
|
|||||||
w.set_nbslot(config.slot_count.0 as u8 - 1);
|
w.set_nbslot(config.slot_count.0 as u8 - 1);
|
||||||
w.set_slotsz(config.slot_size.slotsz());
|
w.set_slotsz(config.slot_size.slotsz());
|
||||||
w.set_fboff(config.first_bit_offset.0 as u8);
|
w.set_fboff(config.first_bit_offset.0 as u8);
|
||||||
w.set_sloten(vals::Sloten(config.slot_enable as u16));
|
w.set_sloten(vals::Sloten::from_bits(config.slot_enable as u16));
|
||||||
});
|
});
|
||||||
|
|
||||||
ch.cr1().modify(|w| w.set_saien(true));
|
ch.cr1().modify(|w| w.set_saien(true));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user