aboutsummaryrefslogtreecommitdiff
path: root/book/en/deprecated/migration/migration_v4.md
diff options
context:
space:
mode:
authordatdenkikniet <jcdra1@gmail.com>2023-04-23 15:33:56 +0200
committerdatdenkikniet <jcdra1@gmail.com>2023-05-11 19:20:58 +0200
commita66540efa014b3716d252612bfc7f8f17ed765c4 (patch)
tree5efe4cf769b9941c5ce387649ee8ed15470ca507 /book/en/deprecated/migration/migration_v4.md
parent0807aa548c865d12746ce17aa1c17f7968b139a9 (diff)
Disable the playground on all of these
Diffstat (limited to 'book/en/deprecated/migration/migration_v4.md')
-rw-r--r--book/en/deprecated/migration/migration_v4.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/book/en/deprecated/migration/migration_v4.md b/book/en/deprecated/migration/migration_v4.md
index d1a7ebe..f28b6d9 100644
--- a/book/en/deprecated/migration/migration_v4.md
+++ b/book/en/deprecated/migration/migration_v4.md
@@ -42,7 +42,7 @@ framework: `resources`, `spawn`, `schedule` -- these variables will become
fields of the `Context` structure. Each function within the `#[rtfm::app]` item
gets a different `Context` type.
-``` rust
+``` rust,noplayground
#[rtfm::app(/* .. */)]
const APP: () = {
// change this
@@ -90,7 +90,7 @@ const APP: () = {
The syntax used to declare resources has changed from `static mut`
variables to a `struct Resources`.
-``` rust
+``` rust,noplayground
#[rtfm::app(/* .. */)]
const APP: () = {
// change this
@@ -118,7 +118,7 @@ the `device` field of the `init::Context` structure.
Change this:
-``` rust
+``` rust,noplayground
#[rtfm::app(/* .. */)]
const APP: () = {
#[init]
@@ -132,7 +132,7 @@ const APP: () = {
Into this:
-``` rust
+``` rust,noplayground
#[rtfm::app(/* .. */, peripherals = true)]
// ^^^^^^^^^^^^^^^^^^
const APP: () = {
@@ -155,7 +155,7 @@ attribute with the `binds` argument instead.
Change this:
-``` rust
+``` rust,noplayground
#[rtfm::app(/* .. */)]
const APP: () = {
// hardware tasks
@@ -175,7 +175,7 @@ const APP: () = {
Into this:
-``` rust
+``` rust,noplayground
#[rtfm::app(/* .. */)]
const APP: () = {
#[task(binds = SVCall)]
@@ -212,7 +212,7 @@ ensure it is enabled by the application inside `init`.
Change this:
-``` rust
+``` rust,noplayground
use rtfm::{Duration, Instant, U32Ext};
#[rtfm::app(/* .. */)]
@@ -226,7 +226,7 @@ const APP: () = {
Into this:
-``` rust
+``` rust,noplayground
use rtfm::cyccnt::{Duration, Instant, U32Ext};
// ^^^^^^^^