-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi: re-export spi MODEs defined in embedded_hal.
SPI mode is defined by CPOL and CPHA parameters, where CPOL determines the polarity of the clock and CPHA determines the timing of the data bits relative to the clock pulses. Constants for all four SPI modes are defined in embedded_hal. Re-export them from bitbang_hal to simplify its usage: now there is no no need to pull embedded_hal as dependency just to use MODE_* consts. Besides, update spi example accordingly. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
- Loading branch information
Showing
2 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters