CMSIS-RTOS2: Macros

| CMSIS-RTOS2 Version 2.1.1 Real-Time Operating System: API and RTX Reference Implementation

- Main Page
- Usage and Description
- Reference

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
Macros
RTX5 Specific API

RTX5 macros. More...

## Macros
#define | osRtxThreadCbSize sizeof(osRtxThread_t)
| Control Block sizes. More...
#define | osRtxTimerCbSize sizeof(osRtxTimer_t)
#define | osRtxEventFlagsCbSize sizeof(osRtxEventFlags_t)
#define | osRtxMutexCbSize sizeof(osRtxMutex_t)
#define | osRtxSemaphoreCbSize sizeof(osRtxSemaphore_t)
#define | osRtxMemoryPoolCbSize sizeof(osRtxMemoryPool_t)
#define | osRtxMessageQueueCbSize sizeof(osRtxMessageQueue_t)
#define | osRtxMemoryPoolMemSize(block_count, block_size) (4*(block_count)*(((block_size)+3)/4))
| Memory size in bytes for Memory Pool storage. More...
#define | osRtxMessageQueueMemSize(msg_count, msg_size) (4*(msg_count)*(3+(((msg_size)+3)/4)))
| Memory size in bytes for Message Queue storage. More...

## Description

## Macro Definition Documentation

#define osRtxThreadCbSize sizeof(osRtxThread_t)

#define osRtxTimerCbSize sizeof(osRtxTimer_t)

#define osRtxEventFlagsCbSize sizeof(osRtxEventFlags_t)

#define osRtxMutexCbSize sizeof(osRtxMutex_t)

#define osRtxSemaphoreCbSize sizeof(osRtxSemaphore_t)

#define osRtxMemoryPoolCbSize sizeof(osRtxMemoryPool_t)

#define osRtxMessageQueueCbSize sizeof(osRtxMessageQueue_t)

#define osRtxMemoryPoolMemSize | ( |  | block_count,
|  |  | block_size
| ) |  | (4*(block_count)*(((block_size)+3)/4))

Parameters

  block_count | maximum number of memory blocks in memory pool.
  block_size | memory block size in bytes.

#define osRtxMessageQueueMemSize | ( |  | msg_count,
|  |  | msg_size
| ) |  | (4*(msg_count)*(3+(((msg_size)+3)/4)))

Parameters

  msg_count | maximum number of messages in queue.
  msg_size | maximum message size in bytes.