5#include <freertos/FreeRTOS.h>
6#include <freertos/task.h>
Helper for FreeRTOS static task management.
bool create(TaskFunction_t fn, const char *name, uint32_t stack_size, void *param, UBaseType_t priority, bool use_psram)
Allocate stack and create task.
bool is_created() const
Check if the task has been created and not yet destroyed.
bool destroy()
Delete the task, keeping the stack buffer allocated for reuse by a subsequent create() call.
TaskHandle_t get_handle() const
Get the FreeRTOS task handle.
bool deallocate()
Delete the task (if created) and free the stack buffer.
StackType_t * stack_buffer_