Update embedded-workshop-book/src/enabling-uarte.md

Co-authored-by: Jonathan Pallant <jonathan.pallant@ferrous-systems.com>
This commit is contained in:
Tanks Transfeld 2023-03-21 18:17:16 +01:00 committed by GitHub
parent 2355def66b
commit a80583fb3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ uarte.enable.write(|w| w.enable().enabled());
### Step 6: Disable the peripheral unsafely by writing raw bits into the register.
Write 0 into the register to disable it by passing the closure `|w| w.bits(0x00 as u32)` to the `write()` method. This action is unsafe, so it needs to be in an unsafe block. Call the helper function once more and run your code. Compare your output with the expected output on top of this page.
Write 0 into the register to disable it by passing the closure `|w| w.bits(0u32)` to the `write()` method. This action is unsafe, so it needs to be in an unsafe block. Call the helper function once more and run your code. Compare your output with the expected output on top of this page.
```rust
unsafe {