Compatibility update for get idle task memory. The prototype for vApplicationGetIdleTaskMemory is different for single core and SMP due to the passive idle task memory.
This brings compatibility problem for single core and SMP. Compile option #if configNUMBER_OF_CORES == 1 has to be used in application to built with single core and SMP. This PR tries to reduce the compile option usage for vApplicationGetIdleTaskMemory such that a SMP application can be built with configNUMBER_OF_CORES == 1 without any modification.
Description
Compatibility update for get idle task memory. The prototype for
vApplicationGetIdleTaskMemory
is 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 == 1
has to be used in application to built with single core and SMP. This PR tries to reduce the compile option usage forvApplicationGetIdleTaskMemory
such that a SMP application can be built withconfigNUMBER_OF_CORES == 1
without any modification.In this PR
Update API prototype with the following:
vApplicationGetIdleTaskMemory
prototype for SMP. Now SMP and single core use the same prototype for compatibility.vApplicationGetPassiveIdleTaskMemory
for SMP to get passive idle task memory.Test Steps
N/A
Checklist:
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.