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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// 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);
|
||||||
|
|
Loading…
Reference in New Issue