-
Notifications
You must be signed in to change notification settings - Fork 3k
Replace macros with config options #8106
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
Conversation
Add a config option for the following values: MBED_SYS_STATS_ENABLED MBED_STACK_STATS_ENABLED MBED_CPU_STATS_ENABLED MBED_HEAP_STATS_ENABLED MBED_THREAD_STATS_ENABLED MBED_CONF_APP_MAIN_STACK_SIZE MBED_CONF_APP_TIMER_THREAD_STACK_SIZE MBED_CONF_APP_IDLE_THREAD_STACK_SIZE MBED_CONF_APP_THREAD_STACK_SIZE To maintain backwards compatibility inside the RTOS both APP and RTOS config values can be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, LGTM!
@@ -70,6 +70,31 @@ | |||
"help": "Enable tracing of each memory call by invoking a callback on each memory operation. See mbed_mem_trace.h in the HAL API for more information", | |||
"value": false | |||
}, | |||
"sys-stats-enabled": { | |||
"macro_name": "MBED_SYS_STATS_ENABLED", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting this as macro name will set the macro? Wow I didn't knew we can actually rename long MBED_CONF
parameters using this..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's super helpful but not a really well known feature.
Code changes look good but we should be updating documents and all examples 'mbed-os-example-xxx' to use new parameter |
@deepikabhavnani I can get on that early next week if Russ doesn't beat me to it. |
Example updates will need to wait until this change is in a release. @cmonr can this PR go in the next patch release? |
Examples which should be updated once this is in a release: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like it having it in the config and backward compatible
/morph build |
Build : SUCCESSBuild number : 3123 Triggering tests/morph test |
Test : SUCCESSBuild number : 2925 |
Exporter Build : SUCCESSBuild number : 2732 |
Description
Add a config option for the following values:
To maintain backwards compatibility inside the RTOS both APP and RTOS config values can be used.
Pull request type