stm32: do not use private constructor

This commit is contained in:
Hendrik v. Raven 2025-02-28 09:06:18 +01:00
parent 17301c00e9
commit 4c01f033ea
No known key found for this signature in database
GPG Key ID: BE0B74CCB2E12EA8

View File

@ -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_slotsz(config.slot_size.slotsz());
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));