Skip to content

Commit 11a519b

Browse files
committed
changelog
1 parent 8ce51c0 commit 11a519b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- Relax pin type generics for `Serial`, `I2c`, `Spi`, `Can`. [#462]
1313
~~Use enums of pin tuples and `Enum::from<(tuple)>` for pin remap before passing to peripheral.~~
1414
Use pin enums and `impl RInto<(enum), R>` for peripheral constructors.
15-
Add `RInto` trait and `Rmp` peripheral wrapper, add `remap` for peripherals.
15+
Add `RInto` trait and `Rmp` peripheral wrapper, add `remap` for peripherals. [#514]
1616
Remove `RemapStruct`s. [#462] [#506] [#509]
1717
- Use independent `Spi` and `SpiSlave` structures instead of `OP` generic [#462]
1818
- Take `&Clocks` instead of `Clocks` [#498]
1919
- Temporary replace `stm32f1` with `stm32f1-staging` [#503]
20+
- `Spi` now takes `Option<PIN>` for `SCK`, `MISO`, `MOSI` [#514]
2021

2122
### Changed
2223

@@ -64,6 +65,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6465
[#509]: https://github.com/stm32-rs/stm32f1xx-hal/pull/509
6566
[#510]: https://github.com/stm32-rs/stm32f1xx-hal/pull/510
6667
[#511]: https://github.com/stm32-rs/stm32f1xx-hal/pull/511
68+
[#514]: https://github.com/stm32-rs/stm32f1xx-hal/pull/514
6769

6870
## [v0.10.0] - 2022-12-12
6971

examples/serial.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() -> ! {
5858
// the registers are used to enable and configure the device.
5959
let mut serial = p
6060
.USART3
61-
.serial((tx, rx), Config::default().baudrate(9600.bps()), &clocks);
61+
.serial((tx, rx), Config::default().baudrate(115200.bps()), &clocks);
6262

6363
// Loopback test. Write `X` and wait until the write is successful.
6464
let sent = b'X';
@@ -75,10 +75,10 @@ fn main() -> ! {
7575

7676
// You can also split the serial struct into a receiving and a transmitting part
7777
let (mut tx, mut rx) = serial.split();
78-
let sent = b'Y';
79-
block!(tx.write_u8(sent)).unwrap();
8078
let received = block!(rx.read()).unwrap();
81-
assert_eq!(received, sent);
79+
//let sent = b'Y';
80+
block!(tx.write_u8(received)).unwrap();
81+
//assert_eq!(received, sent);
8282
asm::bkpt();
8383

8484
loop {}

0 commit comments

Comments
 (0)