Skip to content

Commit 13a66d4

Browse files
authored
Merge pull request #60 from arlosi/spifix
Fix SPI initialization to be MSB first
2 parents 609af0a + bcd0f4a commit 13a66d4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ rust:
44
- stable
55
- nightly
66

7-
cache: cargo
8-
97
matrix:
108
allow_failures:
119
- rust: nightly

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313
- Implement blocking Write for UART
1414
- Implement blocking Read for I2C
1515

16+
### Fixed
17+
- Regression in v0.4.0 that set SPI to LSB-first ordering
18+
1619
## [v0.4.0] - 2019-12-27
1720

1821
### Added

src/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ macro_rules! hal {
182182
w.spe()
183183
.enabled()
184184
.lsbfirst()
185-
.lsbfirst()
185+
.msbfirst()
186186
.ssi()
187187
.slave_not_selected()
188188
.ssm()

0 commit comments

Comments
 (0)