Add function to get min free stack of autopoll task
This commit is contained in:
parent
41bcb86c66
commit
953a5d0f63
|
|
@ -359,6 +359,10 @@ class Span{
|
||||||
|
|
||||||
Span& setRebootCallback(void (*f)(uint8_t),uint32_t t=DEFAULT_REBOOT_CALLBACK_TIME){rebootCallback=f;rebootCallbackTime=t;return(*this);}
|
Span& setRebootCallback(void (*f)(uint8_t),uint32_t t=DEFAULT_REBOOT_CALLBACK_TIME){rebootCallback=f;rebootCallbackTime=t;return(*this);}
|
||||||
|
|
||||||
|
uint32_t getAutoPollMinFreeStack(){
|
||||||
|
return uxTaskGetStackHighWaterMark(pollTaskHandle);
|
||||||
|
}
|
||||||
|
|
||||||
void autoPoll(uint32_t stackSize=8192, uint32_t priority=1, uint32_t cpu=0){ // start pollTask()
|
void autoPoll(uint32_t stackSize=8192, uint32_t priority=1, uint32_t cpu=0){ // start pollTask()
|
||||||
xTaskCreateUniversal([](void *parms){
|
xTaskCreateUniversal([](void *parms){
|
||||||
for(;;){
|
for(;;){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue