Skip to content

Commit b6b7011

Browse files
committed
fix rx rx aliases
1 parent 6a05a0e commit b6b7011

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10-
- complete and rework Dma Stream API [#666]
11-
- add `.set_count()` for QEI, add `.write_count()` for TIM [#677]
12-
- add "Fast start" section in README [#678]
10+
### Changed
11+
12+
- complete and rework Dma Stream API [#666]
1313
- SPI bidi takes 2 pins [#526]
1414

15+
### Fixed
16+
17+
- fix serial RxN & TxN alises
18+
19+
### Added
20+
21+
- add `.set_count()` for QEI, add `.write_count()` for TIM [#677]
22+
- add "Fast start" section in README [#678]
23+
1524
[#526]: https://github.com/stm32-rs/stm32f4xx-hal/pull/526
1625
[#666]: https://github.com/stm32-rs/stm32f4xx-hal/pull/666
1726
[#677]: https://github.com/stm32-rs/stm32f4xx-hal/pull/677
@@ -21,11 +30,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2130

2231
### Changed
2332

24-
- implement `embedded_hal::blocking::i2c::Transactional` for `I2c` [#671]
33+
- implement `embedded_hal::blocking::i2c::Transactional` for `I2c` [#671]
2534

2635
### Fixed
2736

28-
- reset timer interrupt in `Counter::start` [#670]
37+
- reset timer interrupt in `Counter::start` [#670]
2938

3039
[#670]: https://github.com/stm32-rs/stm32f4xx-hal/pull/670
3140
[#671]: https://github.com/stm32-rs/stm32f4xx-hal/pull/671

src/serial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl<UART: CommonPins, WORD> Serial<UART, WORD> {
192192
}
193193

194194
macro_rules! halUsart {
195-
($USART:ty, $Serial:ident, $Tx:ident, $Rx:ident) => {
195+
($USART:ty, $Serial:ident, $Rx:ident, $Tx:ident) => {
196196
pub type $Serial<WORD = u8> = Serial<$USART, WORD>;
197197
pub type $Tx<WORD = u8> = Tx<$USART, WORD>;
198198
pub type $Rx<WORD = u8> = Rx<$USART, WORD>;

src/uart.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub use embedded_hal_one::serial::ErrorKind as Error;
2525

2626
#[cfg(not(any(feature = "stm32f413", feature = "stm32f423",)))]
2727
macro_rules! halUart {
28-
($UART:ty, $Serial:ident, $Tx:ident, $Rx:ident) => {
28+
($UART:ty, $Serial:ident, $Rx:ident, $Tx:ident) => {
2929
pub type $Serial<WORD = u8> = Serial<$UART, WORD>;
3030
pub type $Tx<WORD = u8> = Tx<$UART, WORD>;
3131
pub type $Rx<WORD = u8> = Rx<$UART, WORD>;

0 commit comments

Comments
 (0)