diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-12-19 00:36:50 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-12-19 00:36:50 +0100 |
| commit | e1f588f520c76c6f08a01b2d61c0e980401c19f1 (patch) | |
| tree | 557a6e5d78f173e10a0e9bfaf3a988074028c58b | |
| parent | 49534cd4056f20bdf5fa6058b0865afc5fcf38ee (diff) | |
stm32/sai: fix typo.
| -rw-r--r-- | embassy-stm32/src/sai/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/sai/mod.rs b/embassy-stm32/src/sai/mod.rs index af936bc7f..ef8802184 100644 --- a/embassy-stm32/src/sai/mod.rs +++ b/embassy-stm32/src/sai/mod.rs | |||
| @@ -453,7 +453,7 @@ pub struct Config { | |||
| 453 | pub clock_strobe: ClockStrobe, | 453 | pub clock_strobe: ClockStrobe, |
| 454 | pub output_drive: OutputDrive, | 454 | pub output_drive: OutputDrive, |
| 455 | pub master_clock_divider: MasterClockDivider, | 455 | pub master_clock_divider: MasterClockDivider, |
| 456 | pub is_high_impedenane_on_inactive_slot: bool, | 456 | pub is_high_impedance_on_inactive_slot: bool, |
| 457 | pub fifo_threshold: FifoThreshold, | 457 | pub fifo_threshold: FifoThreshold, |
| 458 | pub companding: Companding, | 458 | pub companding: Companding, |
| 459 | pub complement_format: ComplementFormat, | 459 | pub complement_format: ComplementFormat, |
| @@ -484,7 +484,7 @@ impl Default for Config { | |||
| 484 | master_clock_divider: MasterClockDivider::MasterClockDisabled, | 484 | master_clock_divider: MasterClockDivider::MasterClockDisabled, |
| 485 | clock_strobe: ClockStrobe::Rising, | 485 | clock_strobe: ClockStrobe::Rising, |
| 486 | output_drive: OutputDrive::Immediately, | 486 | output_drive: OutputDrive::Immediately, |
| 487 | is_high_impedenane_on_inactive_slot: false, | 487 | is_high_impedance_on_inactive_slot: false, |
| 488 | fifo_threshold: FifoThreshold::ThreeQuarters, | 488 | fifo_threshold: FifoThreshold::ThreeQuarters, |
| 489 | companding: Companding::None, | 489 | companding: Companding::None, |
| 490 | complement_format: ComplementFormat::TwosComplement, | 490 | complement_format: ComplementFormat::TwosComplement, |
| @@ -782,7 +782,7 @@ impl<'d, T: Instance, C: Channel, W: word::Word> Sai<'d, T, C, W> { | |||
| 782 | w.set_cpl(config.complement_format.cpl()); | 782 | w.set_cpl(config.complement_format.cpl()); |
| 783 | w.set_muteval(config.mute_value.muteval()); | 783 | w.set_muteval(config.mute_value.muteval()); |
| 784 | w.set_mutecnt(config.mute_detection_counter.0 as u8); | 784 | w.set_mutecnt(config.mute_detection_counter.0 as u8); |
| 785 | w.set_tris(config.is_high_impedenane_on_inactive_slot); | 785 | w.set_tris(config.is_high_impedance_on_inactive_slot); |
| 786 | }); | 786 | }); |
| 787 | 787 | ||
| 788 | ch.frcr().modify(|w| { | 788 | ch.frcr().modify(|w| { |
