Skip to content

Commit

Permalink
Rename DS to DATA_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinuel committed Oct 15, 2023
1 parent 2c015af commit b9860f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ where

/// Alias for the tuple returned by `Spi::new` on error.
type NewErr<P, SMI, MISO, MOSI, SCLK> = (UninitStateMachine<(P, SMI)>, (MISO, MOSI, SCLK));
impl<'pio, P, SMI, MISO, MOSI, SCLK, const DS: u8> Spi<'pio, P, SMI, MISO, MOSI, SCLK, DS>
impl<'pio, P, SMI, MISO, MOSI, SCLK, const DATA_SIZE: u8>
Spi<'pio, P, SMI, MISO, MOSI, SCLK, DATA_SIZE>
where
P: PIOExt,
SMI: StateMachineIndex,
Expand Down Expand Up @@ -152,8 +153,8 @@ where
// msb/lsb first can be selected here
.out_shift_direction(ShiftDirection::Left)
.in_shift_direction(ShiftDirection::Left)
.pull_threshold(DS)
.push_threshold(DS)
.pull_threshold(DATA_SIZE)
.push_threshold(DATA_SIZE)
.clock_divisor_fixed_point(int, frac)
.build(sm);

Expand Down

0 comments on commit b9860f1

Please sign in to comment.