82 unsigned portSHORT stackDepth,
void * parm = 0) {
83 xTaskCreate(taskfun, name, stackDepth, parm, priority, &
handle);
91 #if INCLUDE_vTaskDelete
101 #if __cplusplus < 201101L
103 void operator =(
Task const&);
106 void operator =(
Task const&) =
delete;
107 #endif // __cplusplus
132 unsigned portSHORT stackDepth) :
133 Task(name, &taskfun, priority, stackDepth, this)
140 virtual void task() = 0;
150 static void taskfun(
void* parm) {
153 #if INCLUDE_vTaskDelete
158 vTaskDelay(portMAX_DELAY);
Urgent tasks, short deadlines, not much processing.
Definition: TaskCPP.h:55
TaskClass(char const *name, TaskPriority priority, unsigned portSHORT stackDepth)
Constructor.
Definition: TaskCPP.h:131
Non-Real Time operatons.
Definition: TaskCPP.h:51
TaskHandle_t handle
Handle for the task we are managing.
Definition: TaskCPP.h:99
Non-Critical operations.
Definition: TaskCPP.h:52
Normal User Interface Level.
Definition: TaskCPP.h:53
virtual void task()=0
task function. The member function task needs to
Make a class based task. Derive from TaskClass and the 'task()' member function will get called as th...
Definition: TaskCPP.h:118
Lowest Level Wrapper. Create the specified task with a provided task function.
Definition: TaskCPP.h:68
Critical Tasks, Do NOW, must be quick (Used by FreeRTOS)
Definition: TaskCPP.h:56
Task(char const *name, void(*taskfun)(void *), TaskPriority priority, unsigned portSHORT stackDepth, void *parm=0)
Constructor.
Definition: TaskCPP.h:81
TaskPriority
Definition: TaskCPP.h:50
Semi-Critical, have deadlines, not a lot of processing.
Definition: TaskCPP.h:54
virtual ~Task()
Destructor.
Definition: TaskCPP.h:90