Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
burrbull committed Oct 14, 2024
1 parent 8ce51c0 commit 11a519b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Relax pin type generics for `Serial`, `I2c`, `Spi`, `Can`. [#462]
~~Use enums of pin tuples and `Enum::from<(tuple)>` for pin remap before passing to peripheral.~~
Use pin enums and `impl RInto<(enum), R>` for peripheral constructors.
Add `RInto` trait and `Rmp` peripheral wrapper, add `remap` for peripherals.
Add `RInto` trait and `Rmp` peripheral wrapper, add `remap` for peripherals. [#514]
Remove `RemapStruct`s. [#462] [#506] [#509]
- Use independent `Spi` and `SpiSlave` structures instead of `OP` generic [#462]
- Take `&Clocks` instead of `Clocks` [#498]
- Temporary replace `stm32f1` with `stm32f1-staging` [#503]
- `Spi` now takes `Option<PIN>` for `SCK`, `MISO`, `MOSI` [#514]

### Changed

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

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

Expand Down
8 changes: 4 additions & 4 deletions examples/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn main() -> ! {
// the registers are used to enable and configure the device.
let mut serial = p
.USART3
.serial((tx, rx), Config::default().baudrate(9600.bps()), &clocks);
.serial((tx, rx), Config::default().baudrate(115200.bps()), &clocks);

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

// You can also split the serial struct into a receiving and a transmitting part
let (mut tx, mut rx) = serial.split();
let sent = b'Y';
block!(tx.write_u8(sent)).unwrap();
let received = block!(rx.read()).unwrap();
assert_eq!(received, sent);
//let sent = b'Y';
block!(tx.write_u8(received)).unwrap();
//assert_eq!(received, sent);
asm::bkpt();

loop {}
Expand Down

0 comments on commit 11a519b

Please sign in to comment.