Skip to content

Commit

Permalink
rename uart-pins example in writing-drivers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz committed Dec 18, 2024
1 parent 7a7b8bc commit 3cbf6f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training-slides/src/writing-drivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ restrictive!

```rust ignore []
// 'degrade()' converts a P0_08 type into a generic Pin type.
let pins = hal::uarte::Pins {
let uarte_pins = hal::uarte::Pins {
rxd: pins.p0_08.degrade().into_floating_input(),
txd: pins.p0_06.degrade().into_push_pull_output(Level::High),
cts: None,
rts: None,
};

let uarte = hal::uarte::Uarte::new(
periph.UARTE1, pins, Parity::EXCLUDED, Baudrate::BAUD115200
periph.UARTE1, uarte_pins, Parity::EXCLUDED, Baudrate::BAUD115200
);
```

Expand Down

0 comments on commit 3cbf6f0

Please sign in to comment.