ESPectro32 Library
Library for using ESPectro32 board
 All Classes Functions Variables Enumerations Enumerator Pages
Classes | Static Public Member Functions | List of all members
FreeRTOS Class Reference

Interface to FreeRTOS functions. More...

#include <FreeRTOS.h>

Classes

class  Semaphore
 

Static Public Member Functions

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 ()
 

Detailed Description

Interface to FreeRTOS functions.

Member Function Documentation

void FreeRTOS::deleteTask ( TaskHandle_t  pTask = nullptr)
static

Delete the task.

Parameters
[in]pTaskAn 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]msThe 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]taskThe function pointer to the function to be run in the task.
[in]taskNameA string identifier for the task.
[in]paramAn optional parameter to be passed to the started task.
[in]stackSizeAn 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: