diff options
| author | Ulf Lilleengen <[email protected]> | 2021-12-10 08:08:56 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2021-12-10 08:08:56 +0100 |
| commit | 08e1fcd2e4fa8d5ea000c9870e12b1917ab67e23 (patch) | |
| tree | b87187c7beca7bd69e02506e29dfa08c00ca03d7 /docs | |
| parent | 5c4a9043d19cc457feaec3ce7b4f279dfac530e8 (diff) | |
Add example snippet inclusion
Diffstat (limited to 'docs')
| l--------- | docs/modules/ROOT/examples/examples | 1 | ||||
| -rw-r--r-- | docs/modules/ROOT/pages/examples.adoc | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/modules/ROOT/examples/examples b/docs/modules/ROOT/examples/examples new file mode 120000 index 000000000..1929330b0 --- /dev/null +++ b/docs/modules/ROOT/examples/examples | |||
| @@ -0,0 +1 @@ | |||
| ../../../../examples \ No newline at end of file | |||
diff --git a/docs/modules/ROOT/pages/examples.adoc b/docs/modules/ROOT/pages/examples.adoc index 198633c77..c852f5205 100644 --- a/docs/modules/ROOT/pages/examples.adoc +++ b/docs/modules/ROOT/pages/examples.adoc | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | = Examples | 1 | = Examples |
| 2 | 2 | ||
| 3 | Embassy provides examples for all HALs supported. You can find them in the `examples/` folder. | 3 | Embassy provides examples for all HALs supported. You can find them in the `examples/` folder. |
| 4 | |||
| 5 | |||
| 6 | Main loop example | ||
| 7 | |||
| 8 | [source,rust] | ||
| 9 | ---- | ||
| 10 | include::example$examples/std/src/bin/tick.rs[] | ||
| 11 | ---- | ||
