File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
12
- Relax pin type generics for ` Serial ` , ` I2c ` , ` Spi ` , ` Can ` . [ #462 ]
13
13
~~ Use enums of pin tuples and ` Enum::from<(tuple)> ` for pin remap before passing to peripheral.~~
14
14
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 ]
16
16
Remove ` RemapStruct ` s. [ #462 ] [ #506 ] [ #509 ]
17
17
- Use independent ` Spi ` and ` SpiSlave ` structures instead of ` OP ` generic [ #462 ]
18
18
- Take ` &Clocks ` instead of ` Clocks ` [ #498 ]
19
19
- Temporary replace ` stm32f1 ` with ` stm32f1-staging ` [ #503 ]
20
+ - ` Spi ` now takes ` Option<PIN> ` for ` SCK ` , ` MISO ` , ` MOSI ` [ #514 ]
20
21
21
22
### Changed
22
23
@@ -64,6 +65,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
64
65
[ #509 ] : https://github.com/stm32-rs/stm32f1xx-hal/pull/509
65
66
[ #510 ] : https://github.com/stm32-rs/stm32f1xx-hal/pull/510
66
67
[ #511 ] : https://github.com/stm32-rs/stm32f1xx-hal/pull/511
68
+ [ #514 ] : https://github.com/stm32-rs/stm32f1xx-hal/pull/514
67
69
68
70
## [ v0.10.0] - 2022-12-12
69
71
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fn main() -> ! {
58
58
// the registers are used to enable and configure the device.
59
59
let mut serial = p
60
60
. USART3
61
- . serial ( ( tx, rx) , Config :: default ( ) . baudrate ( 9600 . bps ( ) ) , & clocks) ;
61
+ . serial ( ( tx, rx) , Config :: default ( ) . baudrate ( 115200 . bps ( ) ) , & clocks) ;
62
62
63
63
// Loopback test. Write `X` and wait until the write is successful.
64
64
let sent = b'X' ;
@@ -75,10 +75,10 @@ fn main() -> ! {
75
75
76
76
// You can also split the serial struct into a receiving and a transmitting part
77
77
let ( mut tx, mut rx) = serial. split ( ) ;
78
- let sent = b'Y' ;
79
- block ! ( tx. write_u8( sent) ) . unwrap ( ) ;
80
78
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);
82
82
asm:: bkpt ( ) ;
83
83
84
84
loop { }
You can’t perform that action at this time.
0 commit comments