diff options
| author | Kieran Cawthray <kieranc@gmail.com> | 2021-12-05 20:32:29 +0100 |
|---|---|---|
| committer | Kieran Cawthray <kieranc@gmail.com> | 2021-12-05 20:32:29 +0100 |
| commit | c00ad4af352b8573f1bba6b691bc4d74a0d1aa77 (patch) | |
| tree | 4dcf1509cf0cda12660d386005c203203f522e69 /doc/code/Intro.md | |
| parent | 1b2a8a5a044d01978854b54fd30ed3737a041e9b (diff) | |
| parent | 85a25302bfac215f9ec7b993f6a2c21a20ee223b (diff) | |
Merge remote-tracking branch 'upstream/develop' into pts-settings
Diffstat (limited to 'doc/code/Intro.md')
| -rw-r--r-- | doc/code/Intro.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/code/Intro.md b/doc/code/Intro.md index 762102fe..bf68c7a5 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. |
