From 9f95ff5b6ba01db09552b84a0ab79607060a2666 Mon Sep 17 00:00:00 2001 From: Ali Labbene Date: Wed, 11 Dec 2019 08:59:21 +0100 Subject: Official ARM version: v5.4.0 Add CMSIS V5.4.0, please refer to index.html available under \docs folder. Note: content of \CMSIS\Core\Include has been copied under \Include to keep the same structure used in existing projects, and thus avoid projects mass update Note: the following components have been removed from ARM original delivery (as not used in ST packages) - CMSIS_EW2018.pdf - .gitattributes - .gitignore - \Device - \CMSIS - \CoreValidation - \DAP - \Documentation - \DoxyGen - \Driver - \Pack - \RTOS\CMSIS_RTOS_Tutorial.pdf - \RTOS\RTX - \RTOS\Template - \RTOS2\RTX - \Utilities - All ARM/GCC projects files are deleted from \DSP, \RTOS and \RTOS2 Change-Id: Ia026c3f0f0d016627a4fb5a9032852c33d24b4d3 --- docs/RTOS2/html/pControlBlockSizes.html | 151 ++++++++++++++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 docs/RTOS2/html/pControlBlockSizes.html (limited to 'docs/RTOS2/html/pControlBlockSizes.html') diff --git a/docs/RTOS2/html/pControlBlockSizes.html b/docs/RTOS2/html/pControlBlockSizes.html new file mode 100644 index 0000000..fcb61c7 --- /dev/null +++ b/docs/RTOS2/html/pControlBlockSizes.html @@ -0,0 +1,151 @@ + + + + + +Control Block Sizes +CMSIS-RTOS2: Control Block Sizes + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
CMSIS-RTOS2 +  Version 2.1.3 +
+
Real-Time Operating System: API and RTX Reference Implementation
+
+
+ +
+
    + +
+
+ + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Control Block Sizes
+
+
+

Keil RTX v5 specific control block definitions (including sizes) as well as memory pool and message queue memory requirements are defined in the header file rtx_os.h:

+

If you provide memory for the RTOS objects, you need to know the size that is required for each object control block. The memory of the control block is provided by the parameter attr of the related osXxxxNew function. The element cb_mem is the memory address, cb_size is the size of the control block memory.

+

Refer to Static Object Memory for more information.

+

The following table lists the control block sizes:

+ + + + + + + + + + + + + + + + + +
Category Control Block Size Attribute Size #define symbol
Thread Management osThreadAttr_t::cb_mem 68 bytes osRtxThreadCbSize
Timer Management osTimerAttr_t::cb_mem 32 bytes osRtxTimerCbSize
Event Flags osEventFlagsAttr_t::cb_mem 16 bytes osRtxEventFlagsCbSize
Mutex Management osMutexAttr_t::cb_mem 28 bytes osRtxMutexCbSize
Semaphores osSemaphoreAttr_t::cb_mem 16 bytes osRtxSemaphoreCbSize
Memory Pool osMemoryPoolAttr_t::cb_mem 36 bytes osRtxMemoryPoolCbSize
Message Queue osMessageQueueAttr_t::cb_mem 52 bytes osRtxMessageQueueCbSize
+
+
+ + + + -- cgit