Skip to content

Commit 4a54d09

Browse files
bors[bot]imihajlow
andauthored
Merge #543
543: Add public method to set SSI r=burrbull a=imihajlow Co-authored-by: Ivan Mikhailov <[email protected]>
2 parents f1581de + 4d0898a commit 4a54d09

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2020
- Docs in `rtic-adc-dma` example [#532]
2121
- `OutPortX` (X = 2..8) and `OutPortArray` structures which can handle several pins at once [#426]
2222
- `restore` for `ErasedPin` and `PartiallyErasedPin`
23+
- Added a public method to set SSI bit in SPI. [#543]
2324

2425
### Fixed
2526

@@ -29,6 +30,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2930

3031
[#426]: https://github.com/stm32-rs/stm32f4xx-hal/pull/426
3132
[#532]: https://github.com/stm32-rs/stm32f4xx-hal/pull/532
33+
[#543]: https://github.com/stm32-rs/stm32f4xx-hal/pull/543
3234
[#571]: https://github.com/stm32-rs/stm32f4xx-hal/pull/571
3335
[#572]: https://github.com/stm32-rs/stm32f4xx-hal/pull/572
3436
[#577]: https://github.com/stm32-rs/stm32f4xx-hal/pull/577
@@ -88,6 +90,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
8890
- Added rtic-usb-cdc-echo example [#553]
8991
- Add possibility to clear a Serial `Rx` idle interrupt from a DMA `Transfer` [#556]
9092

93+
- Serial Tx, Rx containing pins [#514] [#515] [#540]
94+
- Implementation of From trait for Pin-to-PartiallyErasedPin [#507]
95+
- Implementation of From trait for Pin-to-ErasedPin [#507]
96+
- Implementation of From trait for PartiallyErasedPin-to-ErasedPin [#507]
97+
- `SysMonoTimerExt` helper trait, `Pwm::(get/set)_duty_time` [#497]
98+
- example of using i2s in out with rtic and interrupt.
99+
- example of using USB CDC with interrupts.
100+
- Added non-blocking I2C based on DMA [#534]
101+
- Added Transactional I2C API [#542]
91102

92103
[#481]: https://github.com/stm32-rs/stm32f4xx-hal/pull/481
93104
[#489]: https://github.com/stm32-rs/stm32f4xx-hal/pull/489

src/spi.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,12 @@ impl<SPI: Instance, PINS, const BIDI: bool, W, OPERATION> Spi<SPI, PINS, BIDI, W
606606
pub fn is_overrun(&self) -> bool {
607607
self.spi.sr.read().ovr().bit_is_set()
608608
}
609+
610+
/// Set the slave select bit programmatically.
611+
#[inline]
612+
pub fn set_internal_nss(&mut self, value: bool) {
613+
self.spi.cr1.modify(|_, w| w.ssi().bit(value));
614+
}
609615
}
610616

611617
trait ReadWriteReg<W> {

0 commit comments

Comments
 (0)