From e85a98b137fcbd238ef1bcd67260dd9eeca38da0 Mon Sep 17 00:00:00 2001 From: Tanks Transfeld Date: Tue, 21 Mar 2023 18:26:01 +0100 Subject: [PATCH] Update embedded-workshop-book/src/pac-docs.md Co-authored-by: Jonathan Pallant --- embedded-workshop-book/src/pac-docs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedded-workshop-book/src/pac-docs.md b/embedded-workshop-book/src/pac-docs.md index ef1f6c8..eab8190 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 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/lib.rs` defines the singleton peripherals as part of a larger `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.