aboutsummaryrefslogtreecommitdiff
path: root/book/en/src/by-example/app_minimal.md
diff options
context:
space:
mode:
authorPer Lindgren <per.lindgren@ltu.se>2023-01-28 21:57:43 +0100
committerHenrik Tjäder <henrik@tjaders.com>2023-03-01 00:33:39 +0100
commit1f51b10297e9cbb4797aa1ed8be6a2b84c9f2e07 (patch)
treefaab2e5fd8a3432ac5b1f7be3bd9372d8063f8c5 /book/en/src/by-example/app_minimal.md
parentd0c51269608c18a105fd010f070bd9af6f443c60 (diff)
Book: Major rework for RTIC v2
Diffstat (limited to 'book/en/src/by-example/app_minimal.md')
-rw-r--r--book/en/src/by-example/app_minimal.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/book/en/src/by-example/app_minimal.md b/book/en/src/by-example/app_minimal.md
index d0ff40a..f241089 100644
--- a/book/en/src/by-example/app_minimal.md
+++ b/book/en/src/by-example/app_minimal.md
@@ -3,5 +3,19 @@
This is the smallest possible RTIC application:
``` rust
-{{#include ../../../../examples/smallest.rs}}
+{{#include ../../../../rtic/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
+$ cargo size --example smallest --target thumbv7m-none-eabi --release
+Finished release [optimized] target(s) in 0.07s
+ text data bss dec hex filename
+ 924 0 0 924 39c smallest
+```
+
+<!-- ---
+
+Technically, RTIC will generate a statically allocated future for each *software* task (holding the execution context, including the `Context` struct and stack allocated variables). Futures associated to the same static priority will share an asynchronous stack during execution. -->