RTX_Config.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. /*
  2. * Copyright (c) 2013-2023 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.6.0
  21. *
  22. * Project: CMSIS-RTOS RTX
  23. * Title: RTX Configuration definitions
  24. *
  25. * -----------------------------------------------------------------------------
  26. */
  27. #ifndef RTX_CONFIG_H_
  28. #define RTX_CONFIG_H_
  29. #ifdef _RTE_
  30. #include "RTE_Components.h"
  31. #ifdef RTE_RTX_CONFIG_H
  32. #include RTE_RTX_CONFIG_H
  33. #endif
  34. #endif
  35. //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
  36. // <h>System Configuration
  37. // =======================
  38. // <o>Global Dynamic Memory size [bytes] <0-1073741824:8>
  39. // <i> Defines the combined global dynamic memory size.
  40. // <i> Default: 32768
  41. #ifndef OS_DYNAMIC_MEM_SIZE
  42. #define OS_DYNAMIC_MEM_SIZE 32768
  43. #endif
  44. // <o>Kernel Tick Frequency [Hz] <1-1000000>
  45. // <i> Defines base time unit for delays and timeouts.
  46. // <i> Default: 1000 (1ms tick)
  47. #ifndef OS_TICK_FREQ
  48. #define OS_TICK_FREQ 1000
  49. #endif
  50. // <e>Round-Robin Thread switching
  51. // <i> Enables Round-Robin Thread switching.
  52. #ifndef OS_ROBIN_ENABLE
  53. #define OS_ROBIN_ENABLE 1
  54. #endif
  55. // <o>Round-Robin Timeout <1-1000>
  56. // <i> Defines how many ticks a thread will execute before a thread switch.
  57. // <i> Default: 5
  58. #ifndef OS_ROBIN_TIMEOUT
  59. #define OS_ROBIN_TIMEOUT 5
  60. #endif
  61. // </e>
  62. // <e>Safety features (Source variant only)
  63. // <i> Enables FuSa related features.
  64. // <i> Requires RTX Source variant.
  65. // <i> Enables:
  66. // <i> - selected features from this group
  67. // <i> - Thread functions: osThreadProtectPrivileged
  68. #ifndef OS_SAFETY_FEATURES
  69. #define OS_SAFETY_FEATURES 0
  70. #endif
  71. // <q>Safety Class
  72. // <i> Threads assigned to lower classes cannot modify higher class threads.
  73. // <i> Enables:
  74. // <i> - Object attributes: osSafetyClass
  75. // <i> - Kernel functions: osKernelProtect, osKernelDestroyClass
  76. // <i> - Thread functions: osThreadGetClass, osThreadSuspendClass, osThreadResumeClass
  77. #ifndef OS_SAFETY_CLASS
  78. #define OS_SAFETY_CLASS 1
  79. #endif
  80. // <q>MPU Protected Zone
  81. // <i> Access protection via MPU (Spatial isolation).
  82. // <i> Enables:
  83. // <i> - Thread attributes: osThreadZone
  84. // <i> - Thread functions: osThreadGetZone, osThreadTerminateZone
  85. // <i> - Zone Management: osZoneSetup_Callback
  86. #ifndef OS_EXECUTION_ZONE
  87. #define OS_EXECUTION_ZONE 1
  88. #endif
  89. // <q>Thread Watchdog
  90. // <i> Watchdog alerts ensure timing for critical threads (Temporal isolation).
  91. // <i> Enables:
  92. // <i> - Thread functions: osThreadFeedWatchdog
  93. // <i> - Handler functions: osWatchdogAlarm_Handler
  94. #ifndef OS_THREAD_WATCHDOG
  95. #define OS_THREAD_WATCHDOG 1
  96. #endif
  97. // <q>Object Pointer checking
  98. // <i> Check object pointer alignment and memory region.
  99. #ifndef OS_OBJ_PTR_CHECK
  100. #define OS_OBJ_PTR_CHECK 0
  101. #endif
  102. // <q>SVC Function Pointer checking
  103. // <i> Check SVC function pointer alignment and memory region.
  104. // <i> User needs to define a linker execution region RTX_SVC_VENEERS
  105. // <i> containing input sections: rtx_*.o (.text.os.svc.veneer.*)
  106. #ifndef OS_SVC_PTR_CHECK
  107. #define OS_SVC_PTR_CHECK 0
  108. #endif
  109. // </e>
  110. // <o>ISR FIFO Queue
  111. // <4=> 4 entries <8=> 8 entries <12=> 12 entries <16=> 16 entries
  112. // <24=> 24 entries <32=> 32 entries <48=> 48 entries <64=> 64 entries
  113. // <96=> 96 entries <128=> 128 entries <196=> 196 entries <256=> 256 entries
  114. // <i> RTOS Functions called from ISR store requests to this buffer.
  115. // <i> Default: 16 entries
  116. #ifndef OS_ISR_FIFO_QUEUE
  117. #define OS_ISR_FIFO_QUEUE 16
  118. #endif
  119. // <q>Object Memory usage counters
  120. // <i> Enables object memory usage counters (requires RTX source variant).
  121. #ifndef OS_OBJ_MEM_USAGE
  122. #define OS_OBJ_MEM_USAGE 0
  123. #endif
  124. // </h>
  125. // <h>Thread Configuration
  126. // =======================
  127. // <e>Object specific Memory allocation
  128. // <i> Enables object specific memory allocation.
  129. #ifndef OS_THREAD_OBJ_MEM
  130. #define OS_THREAD_OBJ_MEM 0
  131. #endif
  132. // <o>Number of user Threads <1-1000>
  133. // <i> Defines maximum number of user threads that can be active at the same time.
  134. // <i> Applies to user threads with system provided memory for control blocks.
  135. #ifndef OS_THREAD_NUM
  136. #define OS_THREAD_NUM 1
  137. #endif
  138. // <o>Number of user Threads with default Stack size <0-1000>
  139. // <i> Defines maximum number of user threads with default stack size.
  140. // <i> Applies to user threads with zero stack size specified.
  141. #ifndef OS_THREAD_DEF_STACK_NUM
  142. #define OS_THREAD_DEF_STACK_NUM 0
  143. #endif
  144. // <o>Total Stack size [bytes] for user Threads with user-provided Stack size <0-1073741824:8>
  145. // <i> Defines the combined stack size for user threads with user-provided stack size.
  146. // <i> Applies to user threads with user-provided stack size and system provided memory for stack.
  147. // <i> Default: 0
  148. #ifndef OS_THREAD_USER_STACK_SIZE
  149. #define OS_THREAD_USER_STACK_SIZE 0
  150. #endif
  151. // </e>
  152. // <o>Default Thread Stack size [bytes] <96-1073741824:8>
  153. // <i> Defines stack size for threads with zero stack size specified.
  154. // <i> Default: 3072
  155. #ifndef OS_STACK_SIZE
  156. #define OS_STACK_SIZE 3072
  157. #endif
  158. // <o>Idle Thread Stack size [bytes] <72-1073741824:8>
  159. // <i> Defines stack size for Idle thread.
  160. // <i> Default: 512
  161. #ifndef OS_IDLE_THREAD_STACK_SIZE
  162. #define OS_IDLE_THREAD_STACK_SIZE 512
  163. #endif
  164. // <o>Idle Thread TrustZone Module Identifier
  165. // <i> Defines TrustZone Thread Context Management Identifier.
  166. // <i> Applies only to cores with TrustZone technology.
  167. // <i> Default: 0 (not used)
  168. #ifndef OS_IDLE_THREAD_TZ_MOD_ID
  169. #define OS_IDLE_THREAD_TZ_MOD_ID 0
  170. #endif
  171. // <o>Idle Thread Safety Class <0-15>
  172. // <i> Defines the Safety Class number.
  173. // <i> Default: 0
  174. #ifndef OS_IDLE_THREAD_CLASS
  175. #define OS_IDLE_THREAD_CLASS 0
  176. #endif
  177. // <o>Idle Thread Zone <0-127>
  178. // <i> Defines Thread Zone.
  179. // <i> Default: 0
  180. #ifndef OS_IDLE_THREAD_ZONE
  181. #define OS_IDLE_THREAD_ZONE 0
  182. #endif
  183. // <q>Stack overrun checking
  184. // <i> Enables stack overrun check at thread switch (requires RTX source variant).
  185. // <i> Enabling this option increases slightly the execution time of a thread switch.
  186. #ifndef OS_STACK_CHECK
  187. #define OS_STACK_CHECK 1
  188. #endif
  189. // <q>Stack usage watermark
  190. // <i> Initializes thread stack with watermark pattern for analyzing stack usage.
  191. // <i> Enabling this option increases significantly the execution time of thread creation.
  192. #ifndef OS_STACK_WATERMARK
  193. #define OS_STACK_WATERMARK 0
  194. #endif
  195. // <o>Default Processor mode for Thread execution
  196. // <0=> Unprivileged mode
  197. // <1=> Privileged mode
  198. // <i> Default: Unprivileged mode
  199. #ifndef OS_PRIVILEGE_MODE
  200. #define OS_PRIVILEGE_MODE 0
  201. #endif
  202. // </h>
  203. // <h>Timer Configuration
  204. // ======================
  205. // <e>Object specific Memory allocation
  206. // <i> Enables object specific memory allocation.
  207. #ifndef OS_TIMER_OBJ_MEM
  208. #define OS_TIMER_OBJ_MEM 0
  209. #endif
  210. // <o>Number of Timer objects <1-1000>
  211. // <i> Defines maximum number of objects that can be active at the same time.
  212. // <i> Applies to objects with system provided memory for control blocks.
  213. #ifndef OS_TIMER_NUM
  214. #define OS_TIMER_NUM 1
  215. #endif
  216. // </e>
  217. // <o>Timer Thread Priority
  218. // <8=> Low
  219. // <16=> Below Normal <24=> Normal <32=> Above Normal
  220. // <40=> High
  221. // <48=> Realtime
  222. // <i> Defines priority for timer thread
  223. // <i> Default: High
  224. #ifndef OS_TIMER_THREAD_PRIO
  225. #define OS_TIMER_THREAD_PRIO 40
  226. #endif
  227. // <o>Timer Thread Stack size [bytes] <0-1073741824:8>
  228. // <i> Defines stack size for Timer thread.
  229. // <i> May be set to 0 when timers are not used.
  230. // <i> Default: 512
  231. #ifndef OS_TIMER_THREAD_STACK_SIZE
  232. #define OS_TIMER_THREAD_STACK_SIZE 512
  233. #endif
  234. // <o>Timer Thread TrustZone Module Identifier
  235. // <i> Defines TrustZone Thread Context Management Identifier.
  236. // <i> Applies only to cores with TrustZone technology.
  237. // <i> Default: 0 (not used)
  238. #ifndef OS_TIMER_THREAD_TZ_MOD_ID
  239. #define OS_TIMER_THREAD_TZ_MOD_ID 0
  240. #endif
  241. // <o>Timer Thread Safety Class <0-15>
  242. // <i> Defines the Safety Class number.
  243. // <i> Default: 0
  244. #ifndef OS_TIMER_THREAD_CLASS
  245. #define OS_TIMER_THREAD_CLASS 0
  246. #endif
  247. // <o>Timer Thread Zone <0-127>
  248. // <i> Defines Thread Zone.
  249. // <i> Default: 0
  250. #ifndef OS_TIMER_THREAD_ZONE
  251. #define OS_TIMER_THREAD_ZONE 0
  252. #endif
  253. // <o>Timer Callback Queue entries <0-256>
  254. // <i> Number of concurrent active timer callback functions.
  255. // <i> May be set to 0 when timers are not used.
  256. // <i> Default: 4
  257. #ifndef OS_TIMER_CB_QUEUE
  258. #define OS_TIMER_CB_QUEUE 4
  259. #endif
  260. // </h>
  261. // <h>Event Flags Configuration
  262. // ============================
  263. // <e>Object specific Memory allocation
  264. // <i> Enables object specific memory allocation.
  265. #ifndef OS_EVFLAGS_OBJ_MEM
  266. #define OS_EVFLAGS_OBJ_MEM 0
  267. #endif
  268. // <o>Number of Event Flags objects <1-1000>
  269. // <i> Defines maximum number of objects that can be active at the same time.
  270. // <i> Applies to objects with system provided memory for control blocks.
  271. #ifndef OS_EVFLAGS_NUM
  272. #define OS_EVFLAGS_NUM 1
  273. #endif
  274. // </e>
  275. // </h>
  276. // <h>Mutex Configuration
  277. // ======================
  278. // <e>Object specific Memory allocation
  279. // <i> Enables object specific memory allocation.
  280. #ifndef OS_MUTEX_OBJ_MEM
  281. #define OS_MUTEX_OBJ_MEM 0
  282. #endif
  283. // <o>Number of Mutex objects <1-1000>
  284. // <i> Defines maximum number of objects that can be active at the same time.
  285. // <i> Applies to objects with system provided memory for control blocks.
  286. #ifndef OS_MUTEX_NUM
  287. #define OS_MUTEX_NUM 1
  288. #endif
  289. // </e>
  290. // </h>
  291. // <h>Semaphore Configuration
  292. // ==========================
  293. // <e>Object specific Memory allocation
  294. // <i> Enables object specific memory allocation.
  295. #ifndef OS_SEMAPHORE_OBJ_MEM
  296. #define OS_SEMAPHORE_OBJ_MEM 0
  297. #endif
  298. // <o>Number of Semaphore objects <1-1000>
  299. // <i> Defines maximum number of objects that can be active at the same time.
  300. // <i> Applies to objects with system provided memory for control blocks.
  301. #ifndef OS_SEMAPHORE_NUM
  302. #define OS_SEMAPHORE_NUM 1
  303. #endif
  304. // </e>
  305. // </h>
  306. // <h>Memory Pool Configuration
  307. // ============================
  308. // <e>Object specific Memory allocation
  309. // <i> Enables object specific memory allocation.
  310. #ifndef OS_MEMPOOL_OBJ_MEM
  311. #define OS_MEMPOOL_OBJ_MEM 0
  312. #endif
  313. // <o>Number of Memory Pool objects <1-1000>
  314. // <i> Defines maximum number of objects that can be active at the same time.
  315. // <i> Applies to objects with system provided memory for control blocks.
  316. #ifndef OS_MEMPOOL_NUM
  317. #define OS_MEMPOOL_NUM 1
  318. #endif
  319. // <o>Data Storage Memory size [bytes] <0-1073741824:8>
  320. // <i> Defines the combined data storage memory size.
  321. // <i> Applies to objects with system provided memory for data storage.
  322. // <i> Default: 0
  323. #ifndef OS_MEMPOOL_DATA_SIZE
  324. #define OS_MEMPOOL_DATA_SIZE 0
  325. #endif
  326. // </e>
  327. // </h>
  328. // <h>Message Queue Configuration
  329. // ==============================
  330. // <e>Object specific Memory allocation
  331. // <i> Enables object specific memory allocation.
  332. #ifndef OS_MSGQUEUE_OBJ_MEM
  333. #define OS_MSGQUEUE_OBJ_MEM 0
  334. #endif
  335. // <o>Number of Message Queue objects <1-1000>
  336. // <i> Defines maximum number of objects that can be active at the same time.
  337. // <i> Applies to objects with system provided memory for control blocks.
  338. #ifndef OS_MSGQUEUE_NUM
  339. #define OS_MSGQUEUE_NUM 1
  340. #endif
  341. // <o>Data Storage Memory size [bytes] <0-1073741824:8>
  342. // <i> Defines the combined data storage memory size.
  343. // <i> Applies to objects with system provided memory for data storage.
  344. // <i> Default: 0
  345. #ifndef OS_MSGQUEUE_DATA_SIZE
  346. #define OS_MSGQUEUE_DATA_SIZE 0
  347. #endif
  348. // </e>
  349. // </h>
  350. // <h>Event Recorder Configuration
  351. // ===============================
  352. // <e>Global Initialization
  353. // <i> Initialize Event Recorder during 'osKernelInitialize'.
  354. #ifndef OS_EVR_INIT
  355. #define OS_EVR_INIT 0
  356. #endif
  357. // <q>Start recording
  358. // <i> Start event recording after initialization.
  359. #ifndef OS_EVR_START
  360. #define OS_EVR_START 1
  361. #endif
  362. // <h>Global Event Filter Setup
  363. // <i> Initial recording level applied to all components.
  364. // <o.0>Error events
  365. // <o.1>API function call events
  366. // <o.2>Operation events
  367. // <o.3>Detailed operation events
  368. // </h>
  369. #ifndef OS_EVR_LEVEL
  370. #define OS_EVR_LEVEL 0x00U
  371. #endif
  372. // <h>RTOS Event Filter Setup
  373. // <i> Recording levels for RTX components.
  374. // <i> Only applicable if events for the respective component are generated.
  375. // <e.7>Memory Management
  376. // <i> Recording level for Memory Management events.
  377. // <o.0>Error events
  378. // <o.1>API function call events
  379. // <o.2>Operation events
  380. // <o.3>Detailed operation events
  381. // </e>
  382. #ifndef OS_EVR_MEMORY_LEVEL
  383. #define OS_EVR_MEMORY_LEVEL 0x81U
  384. #endif
  385. // <e.7>Kernel
  386. // <i> Recording level for Kernel events.
  387. // <o.0>Error events
  388. // <o.1>API function call events
  389. // <o.2>Operation events
  390. // <o.3>Detailed operation events
  391. // </e>
  392. #ifndef OS_EVR_KERNEL_LEVEL
  393. #define OS_EVR_KERNEL_LEVEL 0x81U
  394. #endif
  395. // <e.7>Thread
  396. // <i> Recording level for Thread events.
  397. // <o.0>Error events
  398. // <o.1>API function call events
  399. // <o.2>Operation events
  400. // <o.3>Detailed operation events
  401. // </e>
  402. #ifndef OS_EVR_THREAD_LEVEL
  403. #define OS_EVR_THREAD_LEVEL 0x85U
  404. #endif
  405. // <e.7>Generic Wait
  406. // <i> Recording level for Generic Wait events.
  407. // <o.0>Error events
  408. // <o.1>API function call events
  409. // <o.2>Operation events
  410. // <o.3>Detailed operation events
  411. // </e>
  412. #ifndef OS_EVR_WAIT_LEVEL
  413. #define OS_EVR_WAIT_LEVEL 0x81U
  414. #endif
  415. // <e.7>Thread Flags
  416. // <i> Recording level for Thread Flags events.
  417. // <o.0>Error events
  418. // <o.1>API function call events
  419. // <o.2>Operation events
  420. // <o.3>Detailed operation events
  421. // </e>
  422. #ifndef OS_EVR_THFLAGS_LEVEL
  423. #define OS_EVR_THFLAGS_LEVEL 0x81U
  424. #endif
  425. // <e.7>Event Flags
  426. // <i> Recording level for Event Flags events.
  427. // <o.0>Error events
  428. // <o.1>API function call events
  429. // <o.2>Operation events
  430. // <o.3>Detailed operation events
  431. // </e>
  432. #ifndef OS_EVR_EVFLAGS_LEVEL
  433. #define OS_EVR_EVFLAGS_LEVEL 0x81U
  434. #endif
  435. // <e.7>Timer
  436. // <i> Recording level for Timer events.
  437. // <o.0>Error events
  438. // <o.1>API function call events
  439. // <o.2>Operation events
  440. // <o.3>Detailed operation events
  441. // </e>
  442. #ifndef OS_EVR_TIMER_LEVEL
  443. #define OS_EVR_TIMER_LEVEL 0x81U
  444. #endif
  445. // <e.7>Mutex
  446. // <i> Recording level for Mutex events.
  447. // <o.0>Error events
  448. // <o.1>API function call events
  449. // <o.2>Operation events
  450. // <o.3>Detailed operation events
  451. // </e>
  452. #ifndef OS_EVR_MUTEX_LEVEL
  453. #define OS_EVR_MUTEX_LEVEL 0x81U
  454. #endif
  455. // <e.7>Semaphore
  456. // <i> Recording level for Semaphore events.
  457. // <o.0>Error events
  458. // <o.1>API function call events
  459. // <o.2>Operation events
  460. // <o.3>Detailed operation events
  461. // </e>
  462. #ifndef OS_EVR_SEMAPHORE_LEVEL
  463. #define OS_EVR_SEMAPHORE_LEVEL 0x81U
  464. #endif
  465. // <e.7>Memory Pool
  466. // <i> Recording level for Memory Pool events.
  467. // <o.0>Error events
  468. // <o.1>API function call events
  469. // <o.2>Operation events
  470. // <o.3>Detailed operation events
  471. // </e>
  472. #ifndef OS_EVR_MEMPOOL_LEVEL
  473. #define OS_EVR_MEMPOOL_LEVEL 0x81U
  474. #endif
  475. // <e.7>Message Queue
  476. // <i> Recording level for Message Queue events.
  477. // <o.0>Error events
  478. // <o.1>API function call events
  479. // <o.2>Operation events
  480. // <o.3>Detailed operation events
  481. // </e>
  482. #ifndef OS_EVR_MSGQUEUE_LEVEL
  483. #define OS_EVR_MSGQUEUE_LEVEL 0x81U
  484. #endif
  485. // </h>
  486. // </e>
  487. // <h>RTOS Event Generation
  488. // <i> Enables event generation for RTX components (requires RTX source variant).
  489. // <q>Memory Management
  490. // <i> Enables Memory Management event generation.
  491. #ifndef OS_EVR_MEMORY
  492. #define OS_EVR_MEMORY 1
  493. #endif
  494. // <q>Kernel
  495. // <i> Enables Kernel event generation.
  496. #ifndef OS_EVR_KERNEL
  497. #define OS_EVR_KERNEL 1
  498. #endif
  499. // <q>Thread
  500. // <i> Enables Thread event generation.
  501. #ifndef OS_EVR_THREAD
  502. #define OS_EVR_THREAD 1
  503. #endif
  504. // <q>Generic Wait
  505. // <i> Enables Generic Wait event generation.
  506. #ifndef OS_EVR_WAIT
  507. #define OS_EVR_WAIT 1
  508. #endif
  509. // <q>Thread Flags
  510. // <i> Enables Thread Flags event generation.
  511. #ifndef OS_EVR_THFLAGS
  512. #define OS_EVR_THFLAGS 1
  513. #endif
  514. // <q>Event Flags
  515. // <i> Enables Event Flags event generation.
  516. #ifndef OS_EVR_EVFLAGS
  517. #define OS_EVR_EVFLAGS 1
  518. #endif
  519. // <q>Timer
  520. // <i> Enables Timer event generation.
  521. #ifndef OS_EVR_TIMER
  522. #define OS_EVR_TIMER 1
  523. #endif
  524. // <q>Mutex
  525. // <i> Enables Mutex event generation.
  526. #ifndef OS_EVR_MUTEX
  527. #define OS_EVR_MUTEX 1
  528. #endif
  529. // <q>Semaphore
  530. // <i> Enables Semaphore event generation.
  531. #ifndef OS_EVR_SEMAPHORE
  532. #define OS_EVR_SEMAPHORE 1
  533. #endif
  534. // <q>Memory Pool
  535. // <i> Enables Memory Pool event generation.
  536. #ifndef OS_EVR_MEMPOOL
  537. #define OS_EVR_MEMPOOL 1
  538. #endif
  539. // <q>Message Queue
  540. // <i> Enables Message Queue event generation.
  541. #ifndef OS_EVR_MSGQUEUE
  542. #define OS_EVR_MSGQUEUE 1
  543. #endif
  544. // </h>
  545. // </h>
  546. // Number of Threads which use standard C/C++ library libspace
  547. // (when thread specific memory allocation is not used).
  548. #if (OS_THREAD_OBJ_MEM == 0)
  549. #ifndef OS_THREAD_LIBSPACE_NUM
  550. #define OS_THREAD_LIBSPACE_NUM 4
  551. #endif
  552. #else
  553. #define OS_THREAD_LIBSPACE_NUM OS_THREAD_NUM
  554. #endif
  555. //------------- <<< end of configuration section >>> ---------------------------
  556. #endif // RTX_CONFIG_H_