Skip to content

Commit e110483

Browse files
committed
Added default transactional spi impl, patch for demonstration
1 parent b096bde commit e110483

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,6 @@ required-features = ["rt", "stm32f429"]
123123
[[example]]
124124
name = "rng-display"
125125
required-features = ["rt", "stm32f407"]
126+
127+
[patch.crates-io]
128+
embedded-hal = { git = "https://github.com/ryankurte/embedded-hal.git", branch = "feature/spi-transactions" }

src/spi.rs

Lines changed: 5 additions & 0 deletions
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)