summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorUlf Lilleengen <ulf.lilleengen@gmail.com>2021-12-10 08:08:56 +0100
committerUlf Lilleengen <ulf.lilleengen@gmail.com>2021-12-10 08:08:56 +0100
commit08e1fcd2e4fa8d5ea000c9870e12b1917ab67e23 (patch)
treeb87187c7beca7bd69e02506e29dfa08c00ca03d7 /docs
parent5c4a9043d19cc457feaec3ce7b4f279dfac530e8 (diff)
downloadembassy-08e1fcd2e4fa8d5ea000c9870e12b1917ab67e23.zip
Add example snippet inclusion
Diffstat (limited to 'docs')
l---------docs/modules/ROOT/examples/examples1
-rw-r--r--docs/modules/ROOT/pages/examples.adoc8
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 00000000..1929330b
--- /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 198633c7..c852f520 100644
--- a/docs/modules/ROOT/pages/examples.adoc
+++ b/docs/modules/ROOT/pages/examples.adoc
@@ -1,3 +1,11 @@
= Examples
Embassy provides examples for all HALs supported. You can find them in the `examples/` folder.
+
+
+Main loop example
+
+[source,rust]
+----
+include::example$examples/std/src/bin/tick.rs[]
+----