ZotBins Core
Loading...
Searching...
No Matches
task.hpp
Go to the documentation of this file.
1
8
9
#ifndef ZOTBINS_TASK_HPP
10
#define ZOTBINS_TASK_HPP
11
12
#include "freertos/FreeRTOS.h"
13
#include <cstdint>
14
15
namespace
Zotbins
16
{
21
class
Task
22
{
23
public
:
31
Task
(
const
char
*name,
const
int
priority,
const
uint32_t stackSize)
32
:
mName
(name),
mPriority
(priority),
mStackSize
(stackSize)
33
{
34
}
35
40
virtual
void
start
() = 0;
41
42
protected
:
47
const
char
*
mName
;
48
53
const
int
mPriority
;
54
59
const
uint32_t
mStackSize
;
60
};
61
}
62
63
#endif
Zotbins::Task::mName
const char * mName
Name of task.
Definition
task.hpp:47
Zotbins::Task::mPriority
const int mPriority
Priority number of task.
Definition
task.hpp:53
Zotbins::Task::Task
Task(const char *name, const int priority, const uint32_t stackSize)
Construct a new Task object. Parameters are needed for FreeRTOS.
Definition
task.hpp:31
Zotbins::Task::mStackSize
const uint32_t mStackSize
Task size of task.
Definition
task.hpp:59
Zotbins::Task::start
virtual void start()=0
Start execution of task.
components
TaskComponent
include
task.hpp
Generated by
1.13.2