Commit f1642e97 authored by Viktor Sonesten's avatar Viktor Sonesten
Browse files

spi/ssp: gate blocking SPI write behind feature

No related merge requests found
Pipeline #196 passed with stage
in 3 minutes and 34 seconds
Showing with 3 additions and 1 deletion
+3 -1
......@@ -42,6 +42,7 @@ version = "0.5.1"
default = ["stable"]
stable = []
nightly = []
ssp-write-only = []
[package.metadata.docs.rs]
features = ["timer-queue"]
......
......@@ -137,7 +137,8 @@ macro_rules! hal_ssp {
// This will fill up and overrun the read FIFO, but it could be useful for use cases
// where the master _never_ wants to read.
//impl embedded_hal::blocking::spi::write::Default<u8> for SpiSsp<$SSP> {}
#[cfg(feature = "ssp-write-only")]
impl embedded_hal::blocking::spi::write::Default<u8> for SpiSsp<$SSP> {}
)+
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment