aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/tips
diff options
context:
space:
mode:
Diffstat (limited to 'book/en/src/by-example/tips')
-rw-r--r--book/en/src/by-example/tips/destructureing.md13
-rw-r--r--book/en/src/by-example/tips/indirection.md12
-rw-r--r--book/en/src/by-example/tips/static_lifetimes.md12
3 files changed, 19 insertions, 18 deletions
diff --git a/book/en/src/by-example/tips/destructureing.md b/book/en/src/by-example/tips/destructureing.md
index 752311d..feaa74b 100644
--- a/book/en/src/by-example/tips/destructureing.md
+++ b/book/en/src/by-example/tips/destructureing.md
@@ -3,13 +3,14 @@
Destructuring task resources might help readability if a task takes multiple
resources. Here are two examples on how to split up the resource struct:
-``` rust,noplayground
-{{#include ../../../../../rtic/examples/destructure.rs}}
+```rust,noplayground
+{{#include ../../../../../examples/lm3s6965/examples/destructure.rs}}
```
-``` console
-$ cargo run --target thumbv7m-none-eabi --example destructure
+```console
+$ cargo xtask qemu --verbose --example destructure
```
-``` console
-{{#include ../../../../../rtic/ci/expected/destructure.run}}
+
+```console
+{{#include ../../../../../ci/expected/lm3s6965/destructure.run}}
```
diff --git a/book/en/src/by-example/tips/indirection.md b/book/en/src/by-example/tips/indirection.md
index aa68190..71a198d 100644
--- a/book/en/src/by-example/tips/indirection.md
+++ b/book/en/src/by-example/tips/indirection.md
@@ -13,14 +13,14 @@ As this example of approach goes completely outside of RTIC resource model with
Here's an example where `heapless::Pool` is used to "box" buffers of 128 bytes.
-``` rust,noplayground
-{{#include ../../../../../rtic/examples/pool.rs}}
+```rust,noplayground
+{{#include ../../../../../examples/lm3s6965/examples/pool.rs}}
```
-``` console
-$ cargo run --target thumbv7m-none-eabi --example pool
+```console
+$ cargo xtask qemu --verbose --example pool
```
-``` console
-{{#include ../../../../../rtic/ci/expected/pool.run}}
+```console
+{{#include ../../../../../ci/expected/lm3s6965/pool.run}}
```
diff --git a/book/en/src/by-example/tips/static_lifetimes.md b/book/en/src/by-example/tips/static_lifetimes.md
index f4e4829..7f4e38f 100644
--- a/book/en/src/by-example/tips/static_lifetimes.md
+++ b/book/en/src/by-example/tips/static_lifetimes.md
@@ -8,16 +8,16 @@ In the following example two different tasks share a [`heapless::spsc::Queue`] f
[`heapless::spsc::Queue`]: https://docs.rs/heapless/0.7.5/heapless/spsc/struct.Queue.html
-``` rust,noplayground
-{{#include ../../../../../rtic/examples/static.rs}}
+```rust,noplayground
+{{#include ../../../../../examples/lm3s6965/examples/static.rs}}
```
Running this program produces the expected output.
-``` console
-$ cargo run --target thumbv7m-none-eabi --example static
+```console
+$ cargo xtask qemu --verbose --example static
```
-``` console
-{{#include ../../../../../rtic/ci/expected/static.run}}
+```console
+{{#include ../../../../../ci/expected/lm3s6965/static.run}}
```