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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user