Skip to content

Commit a988834

Browse files
committed
Added default transactional spi impl
1 parent b096bde commit a988834

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,8 @@ required-features = ["rt", "stm32f429"]
123123
[[example]]
124124
name = "rng-display"
125125
required-features = ["rt", "stm32f407"]
126+
127+
128+
[patch.crates-io]
129+
#embedded-hal = { git = "https://github.com/ryankurte/embedded-hal.git", branch = "feature/spi-transactions" }
130+
embedded-hal = { path = "../embedded-hal" }

src/spi.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1059,3 +1059,8 @@ impl<SPI, PINS> embedded_hal::blocking::spi::write::Default<u8> for Spi<SPI, PIN
10591059
SPI: Deref<Target = spi1::RegisterBlock>
10601060
{
10611061
}
1062+
1063+
impl<SPI, PINS> embedded_hal::blocking::spi::transactional::Default<u8> for Spi<SPI, PINS> where
1064+
SPI: Deref<Target = spi1::RegisterBlock>
1065+
{
1066+
}

0 commit comments

Comments
 (0)