RTX_Config.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /*
  2. * Copyright (c) 2013-2021 Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the License); you may
  7. * not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  14. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. *
  18. * -----------------------------------------------------------------------------
  19. *
  20. * $Revision: V5.5.2
  21. *
  22. * Project: CMSIS-RTOS RTX
  23. * Title: RTX Library Configuration definitions
  24. *
  25. * -----------------------------------------------------------------------------
  26. */
  27. #ifndef RTX_CONFIG_H_
  28. #define RTX_CONFIG_H_
  29. //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
  30. // <h>System Configuration
  31. // =======================
  32. // <q>Object Memory usage counters
  33. // <i> Enables object memory usage counters (requires RTX source variant).
  34. #ifndef OS_OBJ_MEM_USAGE
  35. #define OS_OBJ_MEM_USAGE 0
  36. #endif
  37. // </h>
  38. // <h>Thread Configuration
  39. // =======================
  40. // <q>Stack overrun checking
  41. // <i> Enables stack overrun check at thread switch (requires RTX source variant).
  42. // <i> Enabling this option increases slightly the execution time of a thread switch.
  43. #ifndef OS_STACK_CHECK
  44. #define OS_STACK_CHECK 0
  45. #endif
  46. // </h>
  47. // <h>Event Recorder Configuration
  48. // ===============================
  49. // <h>RTOS Event Generation
  50. // <i> Enables event generation for RTX components (requires RTX source variant).
  51. // <q>Memory Management
  52. // <i> Enables Memory Management event generation.
  53. #ifndef OS_EVR_MEMORY
  54. #define OS_EVR_MEMORY 1
  55. #endif
  56. // <q>Kernel
  57. // <i> Enables Kernel event generation.
  58. #ifndef OS_EVR_KERNEL
  59. #define OS_EVR_KERNEL 1
  60. #endif
  61. // <q>Thread
  62. // <i> Enables Thread event generation.
  63. #ifndef OS_EVR_THREAD
  64. #define OS_EVR_THREAD 1
  65. #endif
  66. // <q>Generic Wait
  67. // <i> Enables Generic Wait event generation.
  68. #ifndef OS_EVR_WAIT
  69. #define OS_EVR_WAIT 1
  70. #endif
  71. // <q>Thread Flags
  72. // <i> Enables Thread Flags event generation.
  73. #ifndef OS_EVR_THFLAGS
  74. #define OS_EVR_THFLAGS 1
  75. #endif
  76. // <q>Event Flags
  77. // <i> Enables Event Flags event generation.
  78. #ifndef OS_EVR_EVFLAGS
  79. #define OS_EVR_EVFLAGS 1
  80. #endif
  81. // <q>Timer
  82. // <i> Enables Timer event generation.
  83. #ifndef OS_EVR_TIMER
  84. #define OS_EVR_TIMER 1
  85. #endif
  86. // <q>Mutex
  87. // <i> Enables Mutex event generation.
  88. #ifndef OS_EVR_MUTEX
  89. #define OS_EVR_MUTEX 1
  90. #endif
  91. // <q>Semaphore
  92. // <i> Enables Semaphore event generation.
  93. #ifndef OS_EVR_SEMAPHORE
  94. #define OS_EVR_SEMAPHORE 1
  95. #endif
  96. // <q>Memory Pool
  97. // <i> Enables Memory Pool event generation.
  98. #ifndef OS_EVR_MEMPOOL
  99. #define OS_EVR_MEMPOOL 1
  100. #endif
  101. // <q>Message Queue
  102. // <i> Enables Message Queue event generation.
  103. #ifndef OS_EVR_MSGQUEUE
  104. #define OS_EVR_MSGQUEUE 1
  105. #endif
  106. // </h>
  107. // </h>
  108. //------------- <<< end of configuration section >>> ---------------------------
  109. #endif // RTX_CONFIG_H_