From b9860f163d021a2410d417bc27b8765bcb84d565 Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Sun, 15 Oct 2023 22:11:04 +0100 Subject: [PATCH] Rename DS to DATA_SIZE --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 885d4a9..1f1c6b6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,8 @@ where /// Alias for the tuple returned by `Spi::new` on error. type NewErr = (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, @@ -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);