diff options
| author | Ulf Lilleengen <[email protected]> | 2025-03-03 08:12:04 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-03-03 08:12:04 +0000 |
| commit | 0edd45e61013539f0d8379bf38177f6cb03f5fc0 (patch) | |
| tree | 7d52441950640ab18eeda72b6f04b1c927d7f70b | |
| parent | 765094887d99bcdce624ac483f076a02079a5c74 (diff) | |
| parent | 4c01f033eaa946db3ec458ee189e4bd33f3f90ab (diff) | |
Merge pull request #3931 from hvraven/stm32-sai-fix
stm32: do not use private constructor
| -rw-r--r-- | embassy-stm32/src/sai/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/sai/mod.rs b/embassy-stm32/src/sai/mod.rs index 0dc8b62d0..39ed44712 100644 --- a/embassy-stm32/src/sai/mod.rs +++ b/embassy-stm32/src/sai/mod.rs | |||
| @@ -936,7 +936,7 @@ impl<'d, T: Instance, W: word::Word> Sai<'d, T, W> { | |||
| 936 | w.set_nbslot(config.slot_count.0 as u8 - 1); | 936 | w.set_nbslot(config.slot_count.0 as u8 - 1); |
| 937 | w.set_slotsz(config.slot_size.slotsz()); | 937 | w.set_slotsz(config.slot_size.slotsz()); |
| 938 | w.set_fboff(config.first_bit_offset.0 as u8); | 938 | w.set_fboff(config.first_bit_offset.0 as u8); |
| 939 | w.set_sloten(vals::Sloten(config.slot_enable as u16)); | 939 | w.set_sloten(vals::Sloten::from_bits(config.slot_enable as u16)); |
| 940 | }); | 940 | }); |
| 941 | 941 | ||
| 942 | ch.cr1().modify(|w| w.set_saien(true)); | 942 | ch.cr1().modify(|w| w.set_saien(true)); |
