Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow OS_THREAD_LIBSPACE_NUM as a macro #11571

Merged
merged 1 commit into from
Oct 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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