mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-11-15 21:21:11 +00:00
Update embedded-workshop-book/src/enabling-uarte.md
Co-authored-by: Jonathan Pallant <jonathan.pallant@ferrous-systems.com>
This commit is contained in:
parent
2355def66b
commit
a80583fb3e
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue