xMemoryRegion xRegions[ portNUM_CONFIGURABLE_REGIONS ];\r
} xTaskParameters;\r
\r
-/* Used with the xTaskGetSystemState() function to return the state of each task \r
+/* Used with the xTaskGetSystemState() function to return the state of each task\r
in the system. */\r
typedef struct xTASK_STATUS\r
{\r
* xTaskGetSystemState() to be available.\r
*\r
* xTaskGetSystemState() populates an xTaskStatusType structure for each task in\r
- * the system. xTaskStatusType structures contain, among other things, members \r
+ * the system. xTaskStatusType structures contain, among other things, members\r
* for the task handle, task name, task priority, task state, and total amount\r
- * of run time consumed by the task. See the xTaskStatusType structure \r
+ * of run time consumed by the task. See the xTaskStatusType structure\r
* definition in this file for the full member list.\r
*\r
* NOTE: This function is intended for debugging use only as its use results in\r
* the scheduler remaining suspended for an extended period.\r
*\r
- * @param pxTaskStatusArray A pointer to an array of xTaskStatusType structures. \r
- * The array contain at least one xTaskStatusType structure for each task that \r
- * is under the control of the RTOS. The number of tasks under the control of \r
+ * @param pxTaskStatusArray A pointer to an array of xTaskStatusType structures.\r
+ * The array contain at least one xTaskStatusType structure for each task that\r
+ * is under the control of the RTOS. The number of tasks under the control of\r
* the RTOS can be determined using the uxTaskGetNumberOfTasks() API function.\r
*\r
* @param uxArraySize The size of the array pointed to by the pxTaskStatusArray\r
* parameter. The size is specified as the number of indexes in the array, or\r
- * the number of xTaskStatusType structures contained in the array, not by the \r
+ * the number of xTaskStatusType structures contained in the array, not by the\r
* number of bytes in the array.\r
*\r
* @param pultotalRunTime If configGENERATE_RUN_TIME_STATS is set to 1 in\r
* FreeRTOSConfig.h then *pulTotalRunTime is set by xTaskGetSystemState() to the\r
- * total run time (as defined by the run time stats clock, see \r
+ * total run time (as defined by the run time stats clock, see\r
* http://www.freertos.org/rtos-run-time-stats.html) since the target booted.\r
*\r
- * @return The number of xTaskStatusType structures that were populated by \r
+ * @return The number of xTaskStatusType structures that were populated by\r
* xTaskGetSystemState(). This should equal the number returned by the\r
* uxTaskGetNumberOfTasks() API function, but will be zero if the value passed\r
* in the uxArraySize parameter was too small.\r
// Avoid divide by zero errors.\r
if( ulTotalRunTime > 0 )\r
{\r
- // For each populated position in the pxTaskStatusArray array, \r
+ // For each populated position in the pxTaskStatusArray array,\r
// format the raw data as human readable ASCII data\r
for( x = 0; x < uxArraySize; x++ )\r
{\r
- /* What percentage of the total run time has the task used?\r
- This will always be rounded down to the nearest integer.\r
- ulTotalRunTimeDiv100 has already been divided by 100.\r
+ // What percentage of the total run time has the task used?\r
+ // This will always be rounded down to the nearest integer.\r
+ // ulTotalRunTimeDiv100 has already been divided by 100.\r
ulStatsAsPercentage = pxTaskStatusArray[ x ].ulRunTimeCounter / ulTotalRunTime;\r
\r
if( ulStatsAsPercentage > 0UL )\r
else\r
{\r
// If the percentage is zero here then the task has\r
- // consumed less than 1% of the total run time. \r
+ // consumed less than 1% of the total run time.\r
sprintf( ( char * ) pcWriteBuffer, ( char * ) "%s\t\t%lu\t\t<1%%\r\n", pxTaskStatusArray[ x ].pcTaskName, pxTaskStatusArray[ x ].ulRunTimeCounter );\r
}\r
\r