ad5680: fix SPI_MODE

This commit is contained in:
Astro 2020-05-13 23:19:09 +02:00
parent c0079007f2
commit 9ecf705420

View File

@ -7,9 +7,10 @@ use stm32f4xx_hal::{
spi, spi,
}; };
/// SPI Mode 1
pub const SPI_MODE: spi::Mode = spi::Mode { pub const SPI_MODE: spi::Mode = spi::Mode {
polarity: spi::Polarity::IdleHigh, polarity: spi::Polarity::IdleLow,
phase: spi::Phase::CaptureOnFirstTransition, phase: spi::Phase::CaptureOnSecondTransition,
}; };
/// 30 MHz /// 30 MHz
pub const SPI_CLOCK: MegaHertz = MegaHertz(30); pub const SPI_CLOCK: MegaHertz = MegaHertz(30);