Skip to content

Commit 6d66cea

Browse files
committed
Fix mstr bit for SPI Master/Slave
1 parent 59b9543 commit 6d66cea

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Fix mstr bit for SPI Master/Slave [#625]
1011
- Add `ReadPin`, `PinSpeed` & `PinPull` traits [#623]
1112
- Add autoimplementations of `DMASet` [#614]
1213
- Simplify `gpio::Outport` [#611]

src/spi.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,6 @@ impl<SPI: Instance, const BIDI: bool, W: FrameSize> Spi<SPI, BIDI, W> {
319319
// bidimode: 2-line or 1-line unidirectional
320320
w.bidimode().bit(BIDI);
321321
w.bidioe().bit(BIDI);
322-
// master/slave mode
323-
w.mstr().clear_bit();
324322
// data frame size
325323
w.dff().bit(W::DFF);
326324
// spe: enable the SPI bus
@@ -337,8 +335,6 @@ impl<SPI: Instance, const BIDI: bool, W: FrameSize> SpiSlave<SPI, BIDI, W> {
337335
// bidimode: 2-line or 1-line unidirectional
338336
w.bidimode().bit(BIDI);
339337
w.bidioe().bit(BIDI);
340-
// master/slave mode
341-
w.mstr().set_bit();
342338
// data frame size
343339
w.dff().bit(W::DFF);
344340
// spe: enable the SPI bus

0 commit comments

Comments
 (0)