Add SPI mode constants

pull/4/head
Diego Barrios Romero 2019-05-16 19:12:39 +02:00
parent 68c6ffd0a5
commit c74f6a86f4
1 changed files with 6 additions and 0 deletions

View File

@ -445,6 +445,12 @@
extern crate embedded_hal as hal;
use core::marker::PhantomData;
use hal::spi::{Mode, MODE_1, MODE_3};
/// SPI mode 1 (CPOL = 0, CPHA = 1)
pub const SPI_MODE_1: Mode = MODE_1;
/// SPI mode 3 (CPOL = 1, CPHA = 1)
pub const SPI_MODE_3: Mode = MODE_3;
/// All possible errors in this crate
#[derive(Debug)]