Add vApplicationGetPassiveIdleTaskMemory for SMP #890
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.








Description
Compatibility update for get idle task memory. The prototype for
vApplicationGetIdleTaskMemoryis different for single core and SMP due to the passive idle task memory.The original implementation.
This brings compatibility problem for single core and SMP. Compile option
#if configNUMBER_OF_CORES == 1has to be used in application to built with single core and SMP. This PR tries to reduce the compile option usage forvApplicationGetIdleTaskMemorysuch that a SMP application can be built withconfigNUMBER_OF_CORES == 1without any modification.In this PR
Update API prototype with the following:
vApplicationGetIdleTaskMemoryprototype for SMP. Now SMP and single core use the same prototype for compatibility.vApplicationGetPassiveIdleTaskMemoryfor SMP to get passive idle task memory.Test Steps
N/A
Checklist:
Unit test is covered in this PR : Add test cases to cover prvCreateIdleTasks for SMP FreeRTOS#1114
Related Issue
#834
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.