]> begriffs open source - freertos/commit
Make the type used to hold run-time counter values configurable (#350)
authorRichardBarry <3073890+RichardBarry@users.noreply.github.com>
Mon, 14 Jun 2021 19:17:41 +0000 (12:17 -0700)
committerGitHub <noreply@github.com>
Mon, 14 Jun 2021 19:17:41 +0000 (12:17 -0700)
commitddc840fd28926ae68d150fd1f0a093eb704d1331
tree1140f20f20ce4fb1ee3173265ad34db5692d153f
parent6a84f2c1da0f8d9fd1946caa55a336ebacfeb392
Make the type used to hold run-time counter values configurable (#350)

* 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.
.github/lexicon.txt
History.txt
include/FreeRTOS.h
include/mpu_prototypes.h
include/mpu_wrappers.h
include/task.h
portable/Common/mpu_wrappers.c
tasks.c