From 53ed7bf7edb21180cb18c0bf6a7dbe6168331879 Mon Sep 17 00:00:00 2001 From: Franz Dietrich Date: Thu, 4 Apr 2024 00:01:46 +0200 Subject: fix included examples and markdown(book) (#912) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- book/en/src/by-example/app_minimal.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'book/en/src/by-example/app_minimal.md') diff --git a/book/en/src/by-example/app_minimal.md b/book/en/src/by-example/app_minimal.md index 2c6f218..1712660 100644 --- a/book/en/src/by-example/app_minimal.md +++ b/book/en/src/by-example/app_minimal.md @@ -2,18 +2,19 @@ This is the smallest possible RTIC application: -``` rust,noplayground -{{#include ../../../../rtic/examples/smallest.rs}} +```rust,noplayground +{{#include ../../../../examples/lm3s6965/examples/smallest.rs}} ``` RTIC is designed with resource efficiency in mind. RTIC itself does not rely on any dynamic memory allocation, thus RAM requirement is dependent only on the application. The flash memory footprint is below 1kB including the interrupt vector table. For a minimal example you can expect something like: -``` console + +```console $ cargo size --example smallest --target thumbv7m-none-eabi --release ``` -``` console +```console Finished release [optimized] target(s) in 0.07s text data bss dec hex filename 924 0 0 924 39c smallest -- cgit v1.2.3