Interface to FreeRTOS functions.
More...
#include <FreeRTOS.h>
|
static void | sleep (uint32_t ms) |
|
static void | startTask (void task(void *), std::string taskName, void *param=nullptr, int stackSize=2048) |
|
static void | deleteTask (TaskHandle_t pTask=nullptr) |
|
static uint32_t | getTimeSinceStart () |
|
Interface to FreeRTOS functions.
void FreeRTOS::deleteTask |
( |
TaskHandle_t |
pTask = nullptr | ) |
|
|
static |
Delete the task.
- Parameters
-
[in] | pTask | An optional handle to the task to be deleted. If not supplied the calling task will be deleted. |
uint32_t FreeRTOS::getTimeSinceStart |
( |
| ) |
|
|
static |
Get the time in milliseconds since the FreeRTOS scheduler started.
- Returns
- The time in milliseconds since the FreeRTOS scheduler started.
void FreeRTOS::sleep |
( |
uint32_t |
ms | ) |
|
|
static |
Sleep for the specified number of milliseconds.
- Parameters
-
[in] | ms | The period in milliseconds for which to sleep. |
void FreeRTOS::startTask |
( |
void |
taskvoid *, |
|
|
std::string |
taskName, |
|
|
void * |
param = nullptr , |
|
|
int |
stackSize = 2048 |
|
) |
| |
|
static |
Start a new task.
- Parameters
-
[in] | task | The function pointer to the function to be run in the task. |
[in] | taskName | A string identifier for the task. |
[in] | param | An optional parameter to be passed to the started task. |
[in] | stackSize | An optional paremeter supplying the size of the stack in which to run the task. |
The documentation for this class was generated from the following files:
- lib/FreeRTOS-Wrapper/FreeRTOS.h
- lib/FreeRTOS-Wrapper/FreeRTOS.cpp