FreeRTOS Tetris
|
Group that contains function that contains MPU specific functions. More...
Functions | |
BaseType_t | xTaskCreateRestricted (const TaskParameters_t *const pxTaskDefinition, TaskHandle_t *pxCreatedTask) PRIVILEGED_FUNCTION |
Create a new task and add it to the list of tasks that are ready to run. The function parameters define the memory regions and associated access permissions allocated to the task. More... | |
void | vTaskAllocateMPURegions (TaskHandle_t xTask, const MemoryRegion_t *const pxRegions) PRIVILEGED_FUNCTION |
Memory regions are assigned to a restricted task when the task is created by a call to xTaskCreateRestricted(). These regions can be redefined using vTaskAllocateMPURegions(). More... | |
Group that contains function that contains MPU specific functions.
void vTaskAllocateMPURegions | ( | TaskHandle_t | xTask, |
const MemoryRegion_t *const | pxRegions | ||
) |
#include <task.h>
Memory regions are assigned to a restricted task when the task is created by a call to xTaskCreateRestricted(). These regions can be redefined using vTaskAllocateMPURegions().
xTask | The handle of the task being updated. |
xRegions | A pointer to an MemoryRegion_t structure that contains the new memory region definitions. |
Example usage:
BaseType_t xTaskCreateRestricted | ( | const TaskParameters_t *const | pxTaskDefinition, |
TaskHandle_t * | pxCreatedTask | ||
) |
#include <task.h>
Create a new task and add it to the list of tasks that are ready to run. The function parameters define the memory regions and associated access permissions allocated to the task.
pxTaskDefinition | Pointer to a structure that contains a member for each of the normal xTaskCreate() parameters (see the xTaskCreate() API documentation) plus an optional stack buffer and the memory region definitions. |
pxCreatedTask | Used to pass back a handle by which the created task can be referenced. |
Example usage: