Skip to content

Commit 258e10d

Browse files
bors[bot]eZioPan
andauthored
Merge #635
635: map `$SpiSlave` to `SpiSlave` struct r=burrbull a=eZioPan will close #634 Co-authored-by: eZio Pan <[email protected]>
2 parents 5b66aa4 + 0f247db commit 258e10d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- map `$SpiSlave` into `SpiSlave` struct in `spi!` macro [#635]
13+
14+
[#635]: https://github.com/stm32-rs/stm32f4xx-hal/pull/635
15+
1016
## [v0.16.0] - 2023-05-07
1117

1218
### Changed

src/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pub trait Instance:
167167
macro_rules! spi {
168168
($SPI:ty: $Spi:ident, $SpiSlave:ident) => {
169169
pub type $Spi<const BIDI: bool = false, W = u8> = Spi<$SPI, BIDI, W>;
170-
pub type $SpiSlave<const BIDI: bool = false, W = u8> = Spi<$SPI, BIDI, W>;
170+
pub type $SpiSlave<const BIDI: bool = false, W = u8> = SpiSlave<$SPI, BIDI, W>;
171171

172172
impl Instance for $SPI {
173173
fn ptr() -> *const spi1::RegisterBlock {

0 commit comments

Comments
 (0)