Data Structures | |
| struct | rtos_instance_t |
| Instance of a FreeRTOS task. More... | |
Functions | |
| BaseType_t | task_create (TaskFunction_t pxTaskCode, rtos_instance_t *inst, void *const pvParameters) |
| Create a FreeRTOS task using the provided instance parameters. | |
| void | log_watermark (const rtos_instance_t *const inst) |
| Log the high-water mark (stack usage in bytes) of a FreeRTOS task. | |
| void | log_info (const rtos_instance_t *const inst) |
| Log general task information in a human-readable way. | |
Core Definitions | |
CPU core identifiers | |
| #define | CORE0 (0) |
| CPU core 0. | |
| #define | CORE1 (1) |
| CPU core 1. | |
General Macros | |
| #define | WORD_LEN_BYTE (4) |
| Word length in bytes. | |
| #define | NOT_SET (255) |
| Default uninitialized value. | |
A collection of useful ESP-IDF FreeRTOS wrappers.
| struct rtos_instance_t |
Instance of a FreeRTOS task.
Stores the task handle and its configuration parameters.
| #define CORE0 (0) |
CPU core 0.
| #define CORE1 (1) |
CPU core 1.
| #define NOT_SET (255) |
Default uninitialized value.
| #define WORD_LEN_BYTE (4) |
Word length in bytes.
| void log_info | ( | const rtos_instance_t *const | inst | ) |
Log general task information in a human-readable way.
The following information is logged:
| inst | Pointer to the rtos_instance_t structure. |
NULL if calling this function from within the task itself. | void log_watermark | ( | const rtos_instance_t *const | inst | ) |
Log the high-water mark (stack usage in bytes) of a FreeRTOS task.
Uses FreeRTOS uxTaskGetStackHighWaterMark() internally.
uxTaskGetStackHighWaterMark() from FreeRTOS for more details.| inst | Pointer to the rtos_instance_t structure. |
NULL if calling this function from within the task itself. | BaseType_t task_create | ( | TaskFunction_t | pxTaskCode, |
| rtos_instance_t * | inst, | ||
| void *const | pvParameters ) |
Create a FreeRTOS task using the provided instance parameters.
Uses FreeRTOS xTaskCreatePinnedToCore() internally.
xTaskCreatePinnedToCore() from FreeRTOS for more details.| [in] | pxTaskCode | Pointer to the task function. |
| [in,out] | inst | Pointer to a preconfigured rtos_instance_t structure. |
| [in] | pvParameters | Parameters to pass to the task function. |
BaseType_t value from xTaskCreatePinnedToCore().