aboutsummaryrefslogtreecommitdiff
path: root/book/en/archive/by_example
diff options
context:
space:
mode:
authorFranz Dietrich <dietrich@teilgedanken.de>2024-04-04 00:01:46 +0200
committerGitHub <noreply@github.com>2024-04-03 22:01:46 +0000
commit53ed7bf7edb21180cb18c0bf6a7dbe6168331879 (patch)
treee7b86edf26aa3bfcf6af4dd825d67a627e8c1252 /book/en/archive/by_example
parentfa2a5b449f1746b4b3bb3da08dab532ee24ba286 (diff)
fix included examples and markdown(book) (#912)
* fix included examples and markdown(book) fixes: #911 * fix footnote pre_init * more example link updates * Restore pool example name * Example: pool: Upgrade to heapless v0.8 * Example: pool: thumbv6 unsupported: wild cfg-if Experiment with multi-backend example contained in the example * Example: lm3s6965: Updated cargo.lock * Book: Use cargo xtask for by-example * Docs: Contributing: cargo xtask --------- Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'book/en/archive/by_example')
-rw-r--r--book/en/archive/by_example/monotonic.md4
-rw-r--r--book/en/archive/by_example/tips/from_ram.md24
2 files changed, 14 insertions, 14 deletions
diff --git a/book/en/archive/by_example/monotonic.md b/book/en/archive/by_example/monotonic.md
index 0ed4340..14084d5 100644
--- a/book/en/archive/by_example/monotonic.md
+++ b/book/en/archive/by_example/monotonic.md
@@ -39,7 +39,7 @@ See the following example:
```
``` console
-$ cargo run --target thumbv7m-none-eabi --example schedule
+$ cargo xtask qemu --verbose --example schedule
{{#include ../../../../ci/expected/schedule.run}}
```
@@ -59,6 +59,6 @@ too late and that the task is already sent for execution. The following example
```
``` console
-$ cargo run --target thumbv7m-none-eabi --example cancel-reschedule
+$ cargo xtask qemu --verbose --example cancel-reschedule
{{#include ../../../../ci/expected/cancel-reschedule.run}}
```
diff --git a/book/en/archive/by_example/tips/from_ram.md b/book/en/archive/by_example/tips/from_ram.md
index a153139..47b3cbf 100644
--- a/book/en/archive/by_example/tips/from_ram.md
+++ b/book/en/archive/by_example/tips/from_ram.md
@@ -11,35 +11,35 @@ improve performance in some cases.
The example below shows how to place the higher priority task, `bar`, in RAM.
-``` rust,noplayground
-{{#include ../../../../../rtic/examples/ramfunc.rs}}
+```rust,noplayground
+{{#include ../../../../../examples/lm3s6965/examples/ramfunc.rs}}
```
Running this program produces the expected output.
-``` console
-$ cargo run --target thumbv7m-none-eabi --example ramfunc
+```console
+$ cargo xtask qemu --verbose --example ramfunc
```
-``` console
-{{#include ../../../../../rtic/ci/expected/ramfunc.run}}
+```console
+{{#include ../../../../../ci/expected/lm3s6965/ramfunc.run}}
```
One can look at the output of `cargo-nm` to confirm that `bar` ended in RAM
(`0x2000_0000`), whereas `foo` ended in Flash (`0x0000_0000`).
-``` console
+```console
$ cargo nm --example ramfunc --release | grep ' foo::'
```
-``` console
-{{#include ../../../../../rtic/ci/expected/ramfunc.run.grep.foo}}
+```console
+{{#include ../../../../../ci/expected/lm3s6965/ramfunc.run.grep.foo}}
```
-``` console
+```console
$ cargo nm --example ramfunc --target thumbv7m-none-eabi --release | grep '*bar::'
```
-``` console
-{{#include ../../../../../rtic/ci/expected/ramfunc.run.grep.bar}}
+```console
+{{#include ../../../../../ci/expected/lm3s6965/ramfunc.run.grep.bar}}
```