Skip to content

Commit 2a24d81

Browse files
authored
Merge pull request #14821 from boraozgen/rtos-events-enable
RTOS: Add configuration to enable RTX events
2 parents a07ec0b + 8b4b48e commit 2a24d81

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cmsis/device/rtos/include/mbed_rtx_conf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@
159159
//#define EVR_RTX_MEMORY_POOL_ERROR_DISABLE
160160
//#define EVR_RTX_MESSAGE_QUEUE_ERROR_DISABLE
161161

162+
#if !MBED_CONF_RTOS_ENABLE_ALL_RTX_EVENTS
163+
162164
//Following events are NOT used by Mbed-OS, you may enable them if needed for debug purposes
163165
#define EVR_RTX_MEMORY_INIT_DISABLE
164166
#define EVR_RTX_MEMORY_ALLOC_DISABLE
@@ -320,4 +322,6 @@
320322
#define EVR_RTX_MESSAGE_QUEUE_DELETE_DISABLE
321323
#define EVR_RTX_MESSAGE_QUEUE_DESTROYED_DISABLE
322324

325+
#endif /* !MBED_CONF_RTOS_ENABLE_ALL_RTX_EVENTS */
326+
323327
#endif /* MBED_RTX_CONF_H */

cmsis/device/rtos/mbed_lib.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
"msgqueue-data-size": {
5858
"help": "The total memory available for all CMSIS-RTOSv2 object-pool message queues combined",
5959
"value": 0
60+
},
61+
"enable-all-rtx-events": {
62+
"help": "Enables all of the RTX events which are disabled by default for optimization",
63+
"value": false
6064
}
6165
},
6266
"macros": ["_RTE_"],

0 commit comments

Comments
 (0)