From 9ecf7054202e197d5e1e3e46db2d6ec062c95d0a Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 13 May 2020 23:19:09 +0200 Subject: [PATCH] ad5680: fix SPI_MODE --- src/ad5680.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ad5680.rs b/src/ad5680.rs index d214d09..74b62d1 100644 --- a/src/ad5680.rs +++ b/src/ad5680.rs @@ -7,9 +7,10 @@ use stm32f4xx_hal::{ spi, }; +/// SPI Mode 1 pub const SPI_MODE: spi::Mode = spi::Mode { - polarity: spi::Polarity::IdleHigh, - phase: spi::Phase::CaptureOnFirstTransition, + polarity: spi::Polarity::IdleLow, + phase: spi::Phase::CaptureOnSecondTransition, }; /// 30 MHz pub const SPI_CLOCK: MegaHertz = MegaHertz(30);