Skip to content

Commit

Permalink
Merge #635
Browse files Browse the repository at this point in the history
635: map `$SpiSlave` to `SpiSlave` struct r=burrbull a=eZioPan

will close #634 

Co-authored-by: eZio Pan <eziopan@qq.com>
  • Loading branch information
bors[bot] and eZioPan authored May 10, 2023
2 parents 5b66aa4 + 0f247db commit 258e10d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Fixed

- map `$SpiSlave` into `SpiSlave` struct in `spi!` macro [#635]

[#635]: https://github.com/stm32-rs/stm32f4xx-hal/pull/635

## [v0.16.0] - 2023-05-07

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub trait Instance:
macro_rules! spi {
($SPI:ty: $Spi:ident, $SpiSlave:ident) => {
pub type $Spi<const BIDI: bool = false, W = u8> = Spi<$SPI, BIDI, W>;
pub type $SpiSlave<const BIDI: bool = false, W = u8> = Spi<$SPI, BIDI, W>;
pub type $SpiSlave<const BIDI: bool = false, W = u8> = SpiSlave<$SPI, BIDI, W>;

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

0 comments on commit 258e10d

Please sign in to comment.