Skip to content

Commit

Permalink
Added default transactional spi impl, patch for demonstration
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankurte committed Jul 13, 2020
1 parent b096bde commit e110483
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,6 @@ required-features = ["rt", "stm32f429"]
[[example]]
name = "rng-display"
required-features = ["rt", "stm32f407"]

[patch.crates-io]
embedded-hal = { git = "https://github.com/ryankurte/embedded-hal.git", branch = "feature/spi-transactions" }
5 changes: 5 additions & 0 deletions src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,3 +1059,8 @@ impl<SPI, PINS> embedded_hal::blocking::spi::write::Default<u8> for Spi<SPI, PIN
SPI: Deref<Target = spi1::RegisterBlock>
{
}

impl<SPI, PINS> embedded_hal::blocking::spi::transactional::Default<u8> for Spi<SPI, PINS> where
SPI: Deref<Target = spi1::RegisterBlock>
{
}

0 comments on commit e110483

Please sign in to comment.