mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-05 10:09:08 +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
f93eb74acd
commit
7e9bf1bbc6
|
@ -52,7 +52,7 @@ use dk_pac::UARTE0;
|
|||
|
||||
### Step 3: Take ownership of the peripherals with `take()`
|
||||
|
||||
Take ownership of the peripherals with `take()`. Take note, the take returns an `Option<T>` so that needs to be taken care of. Bind the `UARTE0` peripheral to it's own variable.
|
||||
Take ownership of the peripherals with `take()`. Be aware, the take returns an `Option<T>` so that needs to be taken care of. Bind the `UARTE0` peripheral to its own variable.
|
||||
|
||||
```rust
|
||||
let periph = dk_pac::Peripherals::take().unwrap();
|
||||
|
|
Loading…
Reference in a new issue