File tree Expand file tree Collapse file tree 11 files changed +55
-74
lines changed Expand file tree Collapse file tree 11 files changed +55
-74
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
12
### Breaking changes
13
13
14
14
- Passing the ` Clock ` parameter to ` Serial ` by reference
15
+ - ` Serial::usart1/2/3 ` -> ` Serial::new `
15
16
16
17
## [ v0.9.0] - 2022-03-02
17
18
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ fn main() -> ! {
48
48
// let tx = gpiob.pb10.into_alternate_push_pull(&mut gpiob.crh);
49
49
// let rx = gpiob.pb11;
50
50
51
- let serial = Serial :: usart1 (
51
+ let serial = Serial :: new (
52
52
p. USART1 ,
53
53
( tx, rx) ,
54
54
& mut afio. mapr ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ fn main() -> ! {
47
47
// let tx = gpiob.pb10.into_alternate_push_pull(&mut gpiob.crh);
48
48
// let rx = gpiob.pb11;
49
49
50
- let serial = Serial :: usart1 (
50
+ let serial = Serial :: new (
51
51
p. USART1 ,
52
52
( tx, rx) ,
53
53
& mut afio. mapr ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ fn main() -> ! {
47
47
// let tx = gpiob.pb10.into_alternate_push_pull(&mut gpiob.crh);
48
48
// let rx = gpiob.pb11;
49
49
50
- let serial = Serial :: usart1 (
50
+ let serial = Serial :: new (
51
51
p. USART1 ,
52
52
( tx, rx) ,
53
53
& mut afio. mapr ,
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ fn main() -> ! {
47
47
// let tx = gpiob.pb10.into_alternate_push_pull(&mut gpiob.crh);
48
48
// let rx = gpiob.pb11;
49
49
50
- let serial = Serial :: usart1 (
50
+ let serial = Serial :: new (
51
51
p. USART1 ,
52
52
( tx, rx) ,
53
53
& mut afio. mapr ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ fn main() -> ! {
59
59
60
60
// Set up the usart device. Taks ownership over the USART register and tx/rx pins. The rest of
61
61
// the registers are used to enable and configure the device.
62
- let serial = Serial :: usart3 (
62
+ let serial = Serial :: new (
63
63
p. USART3 ,
64
64
( tx, rx) ,
65
65
& mut afio. mapr ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ fn main() -> ! {
60
60
61
61
// Set up the usart device. Taks ownership over the USART register and tx/rx pins. The rest of
62
62
// the registers are used to enable and configure the device.
63
- let mut serial = Serial :: usart3 (
63
+ let mut serial = Serial :: new (
64
64
p. USART3 ,
65
65
( tx, rx) ,
66
66
& mut afio. mapr ,
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ fn main() -> ! {
117
117
118
118
// Set up the usart device. Taks ownership over the USART register and tx/rx pins. The rest of
119
119
// the registers are used to enable and configure the device.
120
- let serial = Serial :: usart3 (
120
+ let serial = Serial :: new (
121
121
p. USART3 ,
122
122
( tx_pin, rx_pin) ,
123
123
& mut afio. mapr ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ fn main() -> ! {
58
58
59
59
// Set up the usart device. Taks ownership over the USART register and tx/rx pins. The rest of
60
60
// the registers are used to enable and configure the device.
61
- let serial = Serial :: usart3 (
61
+ let serial = Serial :: new (
62
62
p. USART3 ,
63
63
( tx, rx) ,
64
64
& mut afio. mapr ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ fn main() -> ! {
60
60
61
61
// Set up the usart device. Taks ownership over the USART register and tx/rx pins. The rest of
62
62
// the registers are used to enable and configure the device.
63
- let mut serial = Serial :: usart3 (
63
+ let mut serial = Serial :: new (
64
64
p. USART3 ,
65
65
( tx, rx) ,
66
66
& mut afio. mapr ,
You can’t perform that action at this time.
0 commit comments