Skip to content

Commit ed4b948

Browse files
author
Ari Parkkila
committed
Allow OS_THREAD_LIBSPACE_NUM as a macro
1 parent 698e75f commit ed4b948

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

rtos/source/TARGET_CORTEX/mbed_rtx_conf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
// Provide Mbed-specific instead.
8383
#define RTX_NO_MULTITHREAD_CLIB
8484
// LIBSPACE default value set for ARMCC
85+
#ifndef OS_THREAD_LIBSPACE_NUM
8586
#define OS_THREAD_LIBSPACE_NUM 4
87+
#endif
8688

8789
#define OS_IDLE_THREAD_NAME "rtx_idle"
8890
#define OS_TIMER_THREAD_NAME "rtx_timer"

rtos/source/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,9 @@
568568
// Number of Threads which use standard C/C++ library libspace
569569
// (when thread specific memory allocation is not used).
570570
#if (OS_THREAD_OBJ_MEM == 0)
571+
#ifndef OS_THREAD_LIBSPACE_NUM
571572
#define OS_THREAD_LIBSPACE_NUM 4
573+
#endif
572574
#else
573575
#define OS_THREAD_LIBSPACE_NUM OS_THREAD_NUM
574576
#endif

tools/test_configs/CellularInterface.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"macros": [
3+
"OS_THREAD_LIBSPACE_NUM=5"
4+
],
25
"config": {
36
"echo-server-addr" : {
47
"help" : "IP address of echo server",

0 commit comments

Comments
 (0)