forked from M-Labs/thermostat
ad5680: fix SPI_MODE
This commit is contained in:
parent
c0079007f2
commit
9ecf705420
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user