* Introduce configRUN_TIME_COUNTER_TYPE which enables developers to define the type used to hold run time statistic counters. Defaults to uint32_t for backward compatibility. #define configRUN_TIME_COUNTER_TYPE to a type (for example, uint64_t) in FreeRTOSConfig.h to override the default.
Introduce ulTaskGetIdleRunTimePercent() to complement the pre-existing ulTaskGetIdleRunTimeCounter(). Whereas the pre-existing function returns the raw run time counter value, the new function returns the percentage of the entire run time consumed by the idle task. Note the amount of idle time is only a good measure of the slack time in a system if there are no other tasks executing at the idle priority, tickless
idle is not used, and configIDLE_SHOULD_YIELD is set to 0.
* Add ultaskgetidleruntimepercent to lexicon.txt.
* Update History file.
Add the MPU version of ulTaskGetIdleRunTimePercent().
* Update include/FreeRTOS.h to correct comment as per aggarg@ suggestion.
* Fix alignment in mpu_wrappers.h.
Commit changes to mpu_prototypes.h which were missed from the original commit.
eTaskStateeCurrentState;/* The state in which the task existed when the structure was populated. */
UBaseType_tuxCurrentPriority;/* The priority at which the task was running (may be inherited) when the structure was populated. */
UBaseType_tuxBasePriority;/* The priority to which the task will return if the task's current priority has been inherited to avoid unbounded priority inversion when obtaining a mutex. Only valid if configUSE_MUTEXES is defined as 1 in FreeRTOSConfig.h. */
uint32_tulRunTimeCounter;/* The total run time allocated to the task so far, as defined by the run time stats clock. See https://www.FreeRTOS.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h. */
configRUN_TIME_COUNTER_TYPEulRunTimeCounter;/* The total run time allocated to the task so far, as defined by the run time stats clock. See https://www.FreeRTOS.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h. */
StackType_t*pxStackBase;/* Points to the lowest address of the task's stack area. */
configSTACK_DEPTH_TYPEusStackHighWaterMark;/* The minimum amount of stack space that has remained for the task since the task was created. The closer this value is to zero the closer the task has come to overflowing its stack. */
PRIVILEGED_DATAstaticuint32_tulTaskSwitchedInTime=0UL;/*< Holds the value of a timer/counter the last time a task was switched in. */
PRIVILEGED_DATAstaticvolatileuint32_tulTotalRunTime=0UL;/*< Holds the total amount of execution time as defined by the run time counter clock. */
PRIVILEGED_DATAstaticconfigRUN_TIME_COUNTER_TYPEulTaskSwitchedInTime=0UL;/*< Holds the value of a timer/counter the last time a task was switched in. */
PRIVILEGED_DATAstaticvolatileconfigRUN_TIME_COUNTER_TYPEulTotalRunTime=0UL;/*< Holds the total amount of execution time as defined by the run time counter clock. */