Skip to content

Commit

Permalink
fix rx rx aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
burrbull committed Sep 16, 2023
1 parent 6a05a0e commit b6b7011
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
19 changes: 14 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

- complete and rework Dma Stream API [#666]
- add `.set_count()` for QEI, add `.write_count()` for TIM [#677]
- add "Fast start" section in README [#678]
### Changed

- complete and rework Dma Stream API [#666]
- SPI bidi takes 2 pins [#526]

### Fixed

- fix serial RxN & TxN alises

### Added

- add `.set_count()` for QEI, add `.write_count()` for TIM [#677]
- add "Fast start" section in README [#678]

[#526]: https://github.com/stm32-rs/stm32f4xx-hal/pull/526
[#666]: https://github.com/stm32-rs/stm32f4xx-hal/pull/666
[#677]: https://github.com/stm32-rs/stm32f4xx-hal/pull/677
Expand All @@ -21,11 +30,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- implement `embedded_hal::blocking::i2c::Transactional` for `I2c` [#671]
- implement `embedded_hal::blocking::i2c::Transactional` for `I2c` [#671]

### Fixed

- reset timer interrupt in `Counter::start` [#670]
- reset timer interrupt in `Counter::start` [#670]

[#670]: https://github.com/stm32-rs/stm32f4xx-hal/pull/670
[#671]: https://github.com/stm32-rs/stm32f4xx-hal/pull/671
Expand Down
2 changes: 1 addition & 1 deletion src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl<UART: CommonPins, WORD> Serial<UART, WORD> {
}

macro_rules! halUsart {
($USART:ty, $Serial:ident, $Tx:ident, $Rx:ident) => {
($USART:ty, $Serial:ident, $Rx:ident, $Tx:ident) => {
pub type $Serial<WORD = u8> = Serial<$USART, WORD>;
pub type $Tx<WORD = u8> = Tx<$USART, WORD>;
pub type $Rx<WORD = u8> = Rx<$USART, WORD>;
Expand Down
2 changes: 1 addition & 1 deletion src/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub use embedded_hal_one::serial::ErrorKind as Error;

#[cfg(not(any(feature = "stm32f413", feature = "stm32f423",)))]
macro_rules! halUart {
($UART:ty, $Serial:ident, $Tx:ident, $Rx:ident) => {
($UART:ty, $Serial:ident, $Rx:ident, $Tx:ident) => {
pub type $Serial<WORD = u8> = Serial<$UART, WORD>;
pub type $Tx<WORD = u8> = Tx<$UART, WORD>;
pub type $Rx<WORD = u8> = Rx<$UART, WORD>;
Expand Down

0 comments on commit b6b7011

Please sign in to comment.