Use embedded_hal::blocking::spi::Write instead of FullDuplex #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue description
Trying to compile the stm32f0 examples results in an error because
embedded_hal::spi::FullDuplex
is not implemented for SPI on stm32f0xx_hal:However
embedded_hal::blocking::spi::Write
is implemented. This implementation should be available for all FullDuplex implementations:https://docs.rs/embedded-hal/latest/embedded_hal/blocking/spi/write/trait.Default.html
Testing
Compiled and ran examples on a STM32F030C8Tx, observed LED examples worked well.
Compiled other targets and observed compilation finished (did not run, however this seems to confirm that Write trait is implemented where previously FullDuplex was provided).