|
oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
|
File-scope static storage object declarations. More...

Macros | |
| #define | OVE_MUTEX_DEFINE(name) static ove_mutex_storage_t name |
Declare a static mutex storage variable named name. | |
| #define | OVE_SEM_DEFINE(name) static ove_sem_storage_t name |
Declare a static semaphore storage variable named name. | |
| #define | OVE_EVENT_DEFINE(name) static ove_event_storage_t name |
Declare a static event storage variable named name. | |
| #define | OVE_CONDVAR_DEFINE(name) static ove_condvar_storage_t name |
Declare a static condition variable storage variable named name. | |
| #define | OVE_THREAD_STACK_DEFINE_(name, size) static uint8_t name[(size)] |
Declare a static thread stack array named name with size size. | |
| #define | OVE_THREAD_STACK_MEMBER_(name, size) uint8_t name[size] |
| Declare a non-static (class-member) thread stack array. | |
| #define | OVE_THREAD_DEFINE(name, stack_size_bytes) |
| Declare a static thread storage variable and its stack. | |
| #define | OVE_QUEUE_DEFINE(name, item_sz, max) |
| Declare a static queue storage variable and its backing buffer. | |
| #define | OVE_TIMER_DEFINE(name) static ove_timer_storage_t name |
Declare a static timer storage variable named name. | |
| #define | OVE_EVENTGROUP_DEFINE(name) static ove_eventgroup_storage_t name |
Declare a static event group storage variable named name. | |
| #define | OVE_WORKQUEUE_DEFINE(name, stack_size_bytes) |
| Declare a static work queue storage variable and its stack. | |
| #define | OVE_STREAM_DEFINE(name, buf_size) |
| Declare a static stream buffer storage variable and its backing buffer. | |
| #define | OVE_WATCHDOG_DEFINE(name) static ove_watchdog_storage_t name |
Declare a static watchdog storage variable named name. | |
File-scope static storage object declarations.
Each macro declares a static storage variable of the correct backend type. Pass its address to the corresponding _init() function:
| #define OVE_THREAD_STACK_DEFINE_ | ( | name, | |
| size | |||
| ) | static uint8_t name[(size)] |
Declare a static thread stack array named name with size size.
| #define OVE_THREAD_STACK_MEMBER_ | ( | name, | |
| size | |||
| ) | uint8_t name[size] |
Declare a non-static (class-member) thread stack array.
Use inside a C++ struct or class body where static is not applicable.
| #define OVE_THREAD_DEFINE | ( | name, | |
| stack_size_bytes | |||
| ) |
Declare a static thread storage variable and its stack.
| name | Variable name for the thread storage. |
| stack_size_bytes | Stack size in bytes. |
| #define OVE_QUEUE_DEFINE | ( | name, | |
| item_sz, | |||
| max | |||
| ) |
Declare a static queue storage variable and its backing buffer.
| name | Variable name for the queue storage. |
| item_sz | Size of each queue item in bytes. |
| max | Maximum number of items in the queue. |
| #define OVE_WORKQUEUE_DEFINE | ( | name, | |
| stack_size_bytes | |||
| ) |
Declare a static work queue storage variable and its stack.
| name | Variable name for the work queue storage. |
| stack_size_bytes | Stack size in bytes for the work queue thread. |
| #define OVE_STREAM_DEFINE | ( | name, | |
| buf_size | |||
| ) |
Declare a static stream buffer storage variable and its backing buffer.
| name | Variable name for the stream storage. |
| buf_size | Stream buffer capacity in bytes. |