Skip to content

Commit

Permalink
Merge pull request #11571 from AriParkkila/OS_THREAD_LIBSPACE_NUM
Browse files Browse the repository at this point in the history
Allow OS_THREAD_LIBSPACE_NUM as a macro
  • Loading branch information
0xc0170 authored Oct 28, 2019
2 parents 3efae20 + ed4b948 commit 5a5b0f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rtos/source/TARGET_CORTEX/mbed_rtx_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
// Provide Mbed-specific instead.
#define RTX_NO_MULTITHREAD_CLIB
// LIBSPACE default value set for ARMCC
#ifndef OS_THREAD_LIBSPACE_NUM
#define OS_THREAD_LIBSPACE_NUM 4
#endif

#define OS_IDLE_THREAD_NAME "rtx_idle"
#define OS_TIMER_THREAD_NAME "rtx_timer"
Expand Down
2 changes: 2 additions & 0 deletions rtos/source/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,9 @@
// Number of Threads which use standard C/C++ library libspace
// (when thread specific memory allocation is not used).
#if (OS_THREAD_OBJ_MEM == 0)
#ifndef OS_THREAD_LIBSPACE_NUM
#define OS_THREAD_LIBSPACE_NUM 4
#endif
#else
#define OS_THREAD_LIBSPACE_NUM OS_THREAD_NUM
#endif
Expand Down
3 changes: 3 additions & 0 deletions tools/test_configs/CellularInterface.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"macros": [
"OS_THREAD_LIBSPACE_NUM=5"
],
"config": {
"echo-server-addr" : {
"help" : "IP address of echo server",
Expand Down

0 comments on commit 5a5b0f6

Please sign in to comment.