summaryrefslogtreecommitdiff
path: root/doc/code/Intro.md
diff options
context:
space:
mode:
authorJF <JF002@users.noreply.github.com>2021-11-28 12:59:09 (GMT)
committerGitHub <noreply@github.com>2021-11-28 12:59:09 (GMT)
commit583c7ee22fdf576490169643762240bf9bb6b375 (patch)
treec0bca6afa9b570bb2f78370c1096131acafd32d0 /doc/code/Intro.md
parentf9613d28c06f96fbc93ccbc59a8f749bbc5f7fa5 (diff)
parent4257073a02215e3f182d993765e4c5edef2d9845 (diff)
Merge branch 'develop' into motionservice_fix_typo_in_include
Diffstat (limited to 'doc/code/Intro.md')
-rw-r--r--doc/code/Intro.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/code/Intro.md b/doc/code/Intro.md
index 762102f..bf68c7a 100644
--- a/doc/code/Intro.md
+++ b/doc/code/Intro.md
@@ -21,7 +21,8 @@ Both functions are located inside [systemtask/SystemTask.cpp](/src/systemtask/Sy
It also starts the **task "displayapp"**, which is responsible for launching and running apps, controlling the screen and handling touch events (or forwarding them to the active app).
You can find the "displayapp" task inside [displayapp/DisplayApp.cpp](/src/displayapp/DisplayApp.cpp).
There are also other tasks that are responsible for Bluetooth ("ll" and "ble" inside [libs/mynewt-nimble/porting/npl/freertos/src/nimble_port_freertos.c](/src/libs/mynewt-nimble/porting/npl/freertos/src/nimble_port_freertos.c))
-and periodic tasks like heartrate measurements ([heartratetask/HeartRateTask.cpp](/src/heartratetask/HeartRateTask.cpp)). <br>
+and periodic tasks like heartrate measurements ([heartratetask/HeartRateTask.cpp](/src/heartratetask/HeartRateTask.cpp)).
+
While it is possible for you to create your own task when you need it, it is recommended to just add functionality to `SystemTask::Work()` if possible.
If you absolutely need to create another task, try to guess how much [stack space](https://www.freertos.org/FAQMem.html#StackSize) (in words/4-byte packets)
it will need instead of just typing in a large-ish number.