From 08e1fcd2e4fa8d5ea000c9870e12b1917ab67e23 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Fri, 10 Dec 2021 08:08:56 +0100 Subject: [PATCH] Add example snippet inclusion --- docs/modules/ROOT/examples/examples | 1 + docs/modules/ROOT/pages/examples.adoc | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 120000 docs/modules/ROOT/examples/examples 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 @@ = 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[] +----