|
|
@@ -17,7 +17,7 @@
|
|
|
*
|
|
|
* -----------------------------------------------------------------------------
|
|
|
*
|
|
|
- * $Revision: V5.3.0
|
|
|
+ * $Revision: V5.4.0
|
|
|
*
|
|
|
* Project: CMSIS-RTOS RTX
|
|
|
* Title: RTX Configuration definitions
|
|
|
@@ -40,9 +40,9 @@
|
|
|
// <h>System Configuration
|
|
|
// =======================
|
|
|
|
|
|
-// <o>Global Dynamic Memory size [bytes] <0-1073741824:8>
|
|
|
-// <i> Defines the combined global dynamic memory size.
|
|
|
-// <i> Default: 4096
|
|
|
+// <o>Global Dynamic Memory size [bytes] <0-1073741824:8>
|
|
|
+// <i> Defines the combined global dynamic memory size.
|
|
|
+// <i> Default: 4096
|
|
|
#ifndef OS_DYNAMIC_MEM_SIZE
|
|
|
#define OS_DYNAMIC_MEM_SIZE 4096
|
|
|
#endif
|
|
|
@@ -79,67 +79,8 @@
|
|
|
#define OS_ISR_FIFO_QUEUE 16
|
|
|
#endif
|
|
|
|
|
|
-// <h>Event Recording
|
|
|
-// <i> Configures events recording.
|
|
|
-
|
|
|
-// <q>Memory Management
|
|
|
-// <i> Enables Memory Management events recording.
|
|
|
-#ifndef OS_EVR_MEMORY
|
|
|
-#define OS_EVR_MEMORY 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// <q>Kernel
|
|
|
-// <i> Enables Kernel events recording.
|
|
|
-#ifndef OS_EVR_KERNEL
|
|
|
-#define OS_EVR_KERNEL 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// <q>Thread
|
|
|
-// <i> Enables Thread events recording.
|
|
|
-#ifndef OS_EVR_THREAD
|
|
|
-#define OS_EVR_THREAD 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// <q>Timer
|
|
|
-// <i> Enables Timer events recording.
|
|
|
-#ifndef OS_EVR_TIMER
|
|
|
-#define OS_EVR_TIMER 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// <q>Event Flags
|
|
|
-// <i> Enables Event Flags events recording.
|
|
|
-#ifndef OS_EVR_EVFLAGS
|
|
|
-#define OS_EVR_EVFLAGS 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// <q>Mutex
|
|
|
-// <i> Enables Mutex events recording.
|
|
|
-#ifndef OS_EVR_MUTEX
|
|
|
-#define OS_EVR_MUTEX 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// <q>Semaphore
|
|
|
-// <i> Enables Semaphore events recording.
|
|
|
-#ifndef OS_EVR_SEMAPHORE
|
|
|
-#define OS_EVR_SEMAPHORE 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// <q>Memory Pool
|
|
|
-// <i> Enables Memory Pool events recording.
|
|
|
-#ifndef OS_EVR_MEMPOOL
|
|
|
-#define OS_EVR_MEMPOOL 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// <q>Message Queue
|
|
|
-// <i> Enables Message Queue events recording.
|
|
|
-#ifndef OS_EVR_MSGQUEUE
|
|
|
-#define OS_EVR_MSGQUEUE 1
|
|
|
-#endif
|
|
|
-
|
|
|
-// </h>
|
|
|
-
|
|
|
// <q>Object Memory usage counters
|
|
|
-// <i> Enables object memory usage counters.
|
|
|
+// <i> Enables object memory usage counters (requires RTX source variant).
|
|
|
#ifndef OS_OBJ_MEM_USAGE
|
|
|
#define OS_OBJ_MEM_USAGE 0
|
|
|
#endif
|
|
|
@@ -202,14 +143,14 @@
|
|
|
#endif
|
|
|
|
|
|
// <q>Stack overrun checking
|
|
|
-// <i> Enable stack overrun checks at thread switch.
|
|
|
+// <i> Enables stack overrun check at thread switch.
|
|
|
// <i> Enabling this option increases slightly the execution time of a thread switch.
|
|
|
#ifndef OS_STACK_CHECK
|
|
|
#define OS_STACK_CHECK 1
|
|
|
#endif
|
|
|
|
|
|
// <q>Stack usage watermark
|
|
|
-// <i> Initialize thread stack with watermark pattern for analyzing stack usage.
|
|
|
+// <i> Initializes thread stack with watermark pattern for analyzing stack usage.
|
|
|
// <i> Enabling this option increases significantly the execution time of thread creation.
|
|
|
#ifndef OS_STACK_WATERMARK
|
|
|
#define OS_STACK_WATERMARK 0
|
|
|
@@ -396,6 +337,199 @@
|
|
|
|
|
|
// </h>
|
|
|
|
|
|
+// <h>Event Recorder Configuration
|
|
|
+// ===============================
|
|
|
+
|
|
|
+// <e>Global Initialization
|
|
|
+// <i> Initialize Event Recorder during 'osKernelInitialize'.
|
|
|
+#ifndef OS_EVR_INIT
|
|
|
+#define OS_EVR_INIT 0
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Start recording
|
|
|
+// <i> Start event recording after initialization.
|
|
|
+#ifndef OS_EVR_START
|
|
|
+#define OS_EVR_START 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <h>Global Event Filter Setup
|
|
|
+// <i> Initial event filter settings applied to all components.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </h>
|
|
|
+#ifndef OS_EVR_LEVEL
|
|
|
+#define OS_EVR_LEVEL 0x00U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <h>RTOS Event Filter Setup
|
|
|
+// <i> Event filter settings for RTX components.
|
|
|
+
|
|
|
+// <e.7>Memory Management
|
|
|
+// <i> Filter enable settings for Memory Management events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_MEMORY_FILTER
|
|
|
+#define OS_EVR_MEMORY_FILTER 0x81U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <e.7>Kernel
|
|
|
+// <i> Filter enable settings for Kernel events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_KERNEL_FILTER
|
|
|
+#define OS_EVR_KERNEL_FILTER 0x81U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <e.7>Thread
|
|
|
+// <i> Filter enable settings for Thread events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_THREAD_FILTER
|
|
|
+#define OS_EVR_THREAD_FILTER 0x85U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <e.7>Timer
|
|
|
+// <i> Filter enable settings for Timer events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_TIMER_FILTER
|
|
|
+#define OS_EVR_TIMER_FILTER 0x81U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <e.7>Event Flags
|
|
|
+// <i> Filter enable settings for Event Flags events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_EVFLAGS_FILTER
|
|
|
+#define OS_EVR_EVFLAGS_FILTER 0x81U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <e.7>Mutex
|
|
|
+// <i> Filter enable settings for Mutex events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_MUTEX_FILTER
|
|
|
+#define OS_EVR_MUTEX_FILTER 0x81U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <e.7>Semaphore
|
|
|
+// <i> Filter enable settings for Semaphore events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_SEMAPHORE_FILTER
|
|
|
+#define OS_EVR_SEMAPHORE_FILTER 0x81U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <e.7>Memory Pool
|
|
|
+// <i> Filter enable settings for Memory Pool events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_MEMPOOL_FILTER
|
|
|
+#define OS_EVR_MEMPOOL_FILTER 0x81U
|
|
|
+#endif
|
|
|
+
|
|
|
+// <e.7>Message Queue
|
|
|
+// <i> Filter enable settings for Message Queue events.
|
|
|
+// <o.0>Error events
|
|
|
+// <o.1>API function call events
|
|
|
+// <o.2>Operation events
|
|
|
+// <o.3>Detailed operation events
|
|
|
+// </e>
|
|
|
+#ifndef OS_EVR_MSGQUEUE_FILTER
|
|
|
+#define OS_EVR_MSGQUEUE_FILTER 0x81U
|
|
|
+#endif
|
|
|
+
|
|
|
+// </h>
|
|
|
+
|
|
|
+// </e>
|
|
|
+
|
|
|
+// <h>RTOS Event Generation
|
|
|
+// <i> Enables event generation for RTX components (requires RTX source variant).
|
|
|
+
|
|
|
+// <q>Memory Management
|
|
|
+// <i> Enables Memory Management event generation.
|
|
|
+#ifndef OS_EVR_MEMORY
|
|
|
+#define OS_EVR_MEMORY 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Kernel
|
|
|
+// <i> Enables Kernel event generation.
|
|
|
+#ifndef OS_EVR_KERNEL
|
|
|
+#define OS_EVR_KERNEL 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Thread
|
|
|
+// <i> Enables Thread event generation.
|
|
|
+#ifndef OS_EVR_THREAD
|
|
|
+#define OS_EVR_THREAD 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Timer
|
|
|
+// <i> Enables Timer event generation.
|
|
|
+#ifndef OS_EVR_TIMER
|
|
|
+#define OS_EVR_TIMER 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Event Flags
|
|
|
+// <i> Enables Event Flags event generation.
|
|
|
+#ifndef OS_EVR_EVFLAGS
|
|
|
+#define OS_EVR_EVFLAGS 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Mutex
|
|
|
+// <i> Enables Mutex event generation.
|
|
|
+#ifndef OS_EVR_MUTEX
|
|
|
+#define OS_EVR_MUTEX 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Semaphore
|
|
|
+// <i> Enables Semaphore event generation.
|
|
|
+#ifndef OS_EVR_SEMAPHORE
|
|
|
+#define OS_EVR_SEMAPHORE 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Memory Pool
|
|
|
+// <i> Enables Memory Pool event generation.
|
|
|
+#ifndef OS_EVR_MEMPOOL
|
|
|
+#define OS_EVR_MEMPOOL 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// <q>Message Queue
|
|
|
+// <i> Enables Message Queue event generation.
|
|
|
+#ifndef OS_EVR_MSGQUEUE
|
|
|
+#define OS_EVR_MSGQUEUE 1
|
|
|
+#endif
|
|
|
+
|
|
|
+// </h>
|
|
|
+
|
|
|
+// </h>
|
|
|
+
|
|
|
// Number of Threads which use standard C/C++ library libspace
|
|
|
// (when thread specific memory allocation is not used).
|
|
|
#if (OS_THREAD_OBJ_MEM == 0)
|