1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

allow to set the satck size for user tasks

This commit is contained in:
wellenvogel
2021-12-02 17:43:47 +01:00
parent cd1fefad52
commit c837d9b028
4 changed files with 20 additions and 9 deletions

View File

@@ -27,7 +27,11 @@ void exampleTask(GwApi *param);
void exampleInit(GwApi *param);
//make the task known to the core
//the task function should not return (unless you delete the task - see example code)
DECLARE_USERTASK(exampleTask);
DECLARE_USERTASK(exampleTask)
//if your task needs more stack then the default 2000 bytes, replace the DECLARE_USERTASK
//with: DECLARE_USERTASK_PARAM(exampleTask,2500);
//this will give you 2500 bytes of stack
//let the core call an init function before the
//N2K Stuff and the communication is set up
//normally you should not need this at all