|
PER Firmware
|
Wrapper macros for FreeRTOS constructs (tasks, queues, semaphores) to simplify static memory allocation and initialization. More...
#include <stdint.h>Go to the source code of this file.
Classes | |
| struct | periodic_task_params_t |
Macros | |
| #define | myIDENT(x) |
| #define | myXSTR(x) |
| #define | mySTR(x) |
| #define | __FREERTOS_PATH(x, y) |
| #define | _FREERTOS_PATH(y) |
| #define | STACK_256 (256) |
| #define | STACK_512 (512) |
| #define | STACK_1024 (1024) |
| #define | STACK_2048 (2048) |
| #define | STACK_4096 (4096) |
| #define | DEFINE_TASK(NAME, PERIOD_MS, PRIORITY, STACK_SIZE) |
| Scaffolds the static memory for a FreeRTOS task. | |
| #define | START_TASK(NAME) |
| Initializes and starts the defined task. | |
| #define | getTaskHandle(NAME) |
| Retrieves the FreeRTOS task handle for the defined task. | |
| #define | DEFINE_QUEUE(NAME, ITEM, COUNT) |
| Scaffolds the static memory for a FreeRTOS queue. | |
| #define | INIT_QUEUE(NAME, ITEM, COUNT) |
| Initializes the defined static queue. | |
| #define | DEFINE_SEMAPHORE(NAME) |
| Scaffolds the static memory for a semaphore (and related variants). | |
| #define | DEFINE_MUTEX(NAME) |
| #define | DEFINE_COUNTING_SEMAPHORE(NAME) |
| #define | DEFINE_BINARY_SEMAPHORE(NAME) |
| #define | INIT_MUTEX(NAME) |
| Initializes the defined mutex. | |
| #define | INIT_COUNTING_SEMAPHORE(NAME, MAX_COUNT) |
| Initializes the defined static counting semaphore. | |
| #define | INIT_BINARY_SEMAPHORE(NAME) |
| Initializes the defined static binary semaphore. | |
| #define | getTick() |
| #define | getMS() |
| #define | mDelay(ms) |
Functions | |
| void | periodic_task_runner (void *arg) |
Wrapper macros for FreeRTOS constructs (tasks, queues, semaphores) to simplify static memory allocation and initialization.
| #define __FREERTOS_PATH | ( | x, | |
| y ) |
| #define _FREERTOS_PATH | ( | y | ) |
| #define DEFINE_BINARY_SEMAPHORE | ( | NAME | ) |
| #define DEFINE_COUNTING_SEMAPHORE | ( | NAME | ) |
| #define DEFINE_MUTEX | ( | NAME | ) |
| #define DEFINE_QUEUE | ( | NAME, | |
| ITEM, | |||
| COUNT ) |
Scaffolds the static memory for a FreeRTOS queue.
| #define DEFINE_SEMAPHORE | ( | NAME | ) |
Scaffolds the static memory for a semaphore (and related variants).
| #define DEFINE_TASK | ( | NAME, | |
| PERIOD_MS, | |||
| PRIORITY, | |||
| STACK_SIZE ) |
Scaffolds the static memory for a FreeRTOS task.
| NAME | The function name of the task. |
| PERIOD_MS | Task period in milliseconds. |
| PRIORITY | CMSIS-RTOS2 priority (e.g., osPriorityNormal). |
| STACK_SIZE | Stack size in bytes. |
| #define getMS | ( | ) |
| #define getTaskHandle | ( | NAME | ) |
Retrieves the FreeRTOS task handle for the defined task.
| #define getTick | ( | ) |
| #define INIT_BINARY_SEMAPHORE | ( | NAME | ) |
Initializes the defined static binary semaphore.
| #define INIT_COUNTING_SEMAPHORE | ( | NAME, | |
| MAX_COUNT ) |
Initializes the defined static counting semaphore.
| #define INIT_MUTEX | ( | NAME | ) |
Initializes the defined mutex.
| #define INIT_QUEUE | ( | NAME, | |
| ITEM, | |||
| COUNT ) |
Initializes the defined static queue.
| #define mDelay | ( | ms | ) |
| #define myIDENT | ( | x | ) |
| #define mySTR | ( | x | ) |
| #define myXSTR | ( | x | ) |
| #define START_TASK | ( | NAME | ) |
Initializes and starts the defined task.