Skip to content

Commit

Permalink
i2s_parallel - clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
liebman committed Oct 13, 2024
1 parent 73f302a commit d168e3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esp-hal/src/i2s_parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ mod private {

pub trait TxPins {
fn bits(&self) -> u8;
fn configure<'a, I: super::Instance>(&mut self, instance: &PeripheralRef<'a, I>);
fn configure<I: super::Instance>(&mut self, instance: &PeripheralRef<'_, I>);
}
}

Expand Down Expand Up @@ -586,8 +586,8 @@ pub trait Instance: Signals + RegBlock {
r.conf2().write(|w| w.lcd_en().set_bit());

r.sample_rate_conf().write(|w| unsafe {
w.rx_bits_mod().bits(bits as u8);
w.tx_bits_mod().bits(bits as u8);
w.rx_bits_mod().bits(bits);
w.tx_bits_mod().bits(bits);
w.rx_bck_div_num().bits(2); // I think this is the number of "bclocks" per "sample"
w.tx_bck_div_num().bits(2) // ??
});
Expand Down

0 comments on commit d168e3f

Please sign in to comment.