diff --git a/embedded-workshop-book/src/enabling-uarte.md b/embedded-workshop-book/src/enabling-uarte.md index 90e93cb..8926582 100644 --- a/embedded-workshop-book/src/enabling-uarte.md +++ b/embedded-workshop-book/src/enabling-uarte.md @@ -1,10 +1,10 @@ # Enabling the UARTE0 peripheral -Write a simple program which uses the PAC to enable the UART. See how writing arbitrary values to the ENABLE field in the ENABLE register is unsafe, because only values 0 or 8 should be used. +Write a simple program which uses the PAC to enable the UARTE0. See how writing arbitrary values to the ENABLE field in the ENABLE register is unsafe, because only values 0 or 8 should be used. ## In this exercise you will learn how to: * to safely write into a register -* how to unsafely write into a register +* how to write raw bits into a register * how to read a register ## Prerequisites @@ -27,7 +27,7 @@ Uarte0 is disabled. ``` Find the starter code in `down-the-stack/apps/uarte_enable.rs` -Find the full solution in `down-the-stack/apps/uarte_enable_solution.rs` +Find the full solution in `down-the-stack/solutions/uarte_enable.rs` ## Step-by-Step Solution diff --git a/embedded-workshop-book/src/pac-docs.md b/embedded-workshop-book/src/pac-docs.md index 4d208bc..b5e10bd 100644 --- a/embedded-workshop-book/src/pac-docs.md +++ b/embedded-workshop-book/src/pac-docs.md @@ -33,7 +33,7 @@ Note the difference between the struct field `UARTE0` in `Peripherals` and the m ## Finding corresponding sections in the PAC -* `dk_pac/src/lib.rs` defines the single peripherals with their register block addresses and contains a struct defintion for the `struct Peripherals`. There are two methods for this struct: `take()` and `steal()`. `take()` assures, that only one instance of this can exist. Hence, it's safe. Note that `take()` is only available with the `critical-section` feature enabled. +* `dk_pac/src/lib.rs` defines the single peripherals with their register block addresses and contains a struct definition for the `struct Peripherals`. There are two methods for this struct: `take()` and `steal()`. `take()` assures, that only one instance of this can exist. Hence, it's safe. Note that `take()` is only available with the `critical-section` feature enabled. * `dk_pac/src/uarte0.rs` defines a struct that contains all the registers of the `UARTE0` register block. The `enable` field represents the register of the same name.