aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2019-10-23 18:34:01 +0000
committerGravatar GitHub <noreply@github.com> 2019-10-23 18:34:01 +0000
commitf9b30a1ff87acd5f3c29a32369f0537e8e3d2bf1 (patch)
treeb251d1581fec06ee7e255c9d48af51c583a261f5
parent7d2fa7014dd30ed477180615a4a651535644e51d (diff)
parent1ba2b5abbef841dc7ef4555517ed06b216bc9d8c (diff)
downloadrtic-f9b30a1ff87acd5f3c29a32369f0537e8e3d2bf1.tar.gz
rtic-f9b30a1ff87acd5f3c29a32369f0537e8e3d2bf1.tar.zst
rtic-f9b30a1ff87acd5f3c29a32369f0537e8e3d2bf1.zip
Merge #259
259: Fixed peripherals -> device typo r=japaric a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
-rw-r--r--book/en/src/migration.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/migration.md b/book/en/src/migration.md
index bbafe0d0..a71773ee 100644
--- a/book/en/src/migration.md
+++ b/book/en/src/migration.md
@@ -112,7 +112,7 @@ Change this:
const APP: () = {
#[init]
fn init() {
- peripherals.SOME_PERIPHERAL.write(something);
+ device.SOME_PERIPHERAL.write(something);
}
// ..
@@ -128,7 +128,7 @@ const APP: () = {
#[init]
fn init(cx: init::Context) {
// ^^^^^^^^^^^^^^^^^
- cx.peripherals.SOME_PERIPHERAL.write(something);
+ cx.device.SOME_PERIPHERAL.write(something);
// ^^^
}