pcTaskGetNametask.h
xTaskGetHandletask.hTaskHandle_t xTaskGetHandle( const char *pcNameToQuery ); Looks up the handle of a task from the task's name. NOTE: This function takes a relatively long time to complete and should only be called once for each task. Once the handle of a task has been obtained it can be stored locally for re-use. INCLUDE_xTaskGetHandle must be set to 1 in FreeRTOSConfig.h for xTaskGetHandle() to be available.
xTaskGetTickCounttask.hvolatile TickType_t xTaskGetTickCount( void ); This function cannot be called from an ISR. Use xTaskGetTickCountFromISR() instead.
xTaskGetTickCountFromISRtask.hvolatile TickType_t xTaskGetTickCountFromISR( void ); A version of xTaskGetTickCount() that can be called from an ISR.
xTaskGetSchedulerStatetask.h
uxTaskGetNumberOfTaskstask.h
vTaskListtask.hvoid vTaskList( char *pcWriteBuffer ); configUSE_TRACE_FACILITY and configUSE_STATS_FORMATTING_FUNCTIONS must be defined as 1 in FreeRTOSConfig.h for this function to be available. See the configuration section for more information. NOTE: This function will disable interrupts for its duration. It is not intended for normal application runtime use but as a debug aid. vTaskList() calls uxTaskGetSystemState(), then formats the raw data generated by uxTaskGetSystemState() into a human readable (ASCII) table that shows the state of each task, including the task's stack high water mark (the smaller the high water mark number the closer the task has come to overflowing its stack). Click here to see an example of the output generated. In the ASCII table the following letters are used to denote the state of a task:
vTaskList() is a utility function provided for convenience only. It is not considered part of the kernel. See vTaskGetRunTimeStats() for a utility function that generates a similar table of run time task utilisation information.
vTaskStartTracetask.h
ulTaskEndTracetask.h
vTaskGetRunTimeStatstask.hvoid vTaskGetRunTimeStats( char *pcWriteBuffer ); See the Run Time Stats page for a full description of this feature. configGENERATE_RUN_TIME_STATS and configUSE_STATS_FORMATTING_FUNCTIONS must both be defined as 1 for this function to be available. The application must also then provide definitions for portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() and portGET_RUN_TIME_COUNTER_VALUE to configure a peripheral timer/counter and return the timers current count value respectively. The counter should be at least 10 times the frequency of the tick count. NOTE: This function will disable interrupts for its duration. It is not intended for normal application runtime use but as a debug aid. vTaskGetRunTimeStats() calls uxTaskGetSystemState(), then formats the raw data generated by uxTaskGetSystemState() into a human readable (ASCII) table that shows the amount of time each task has spent in the Running state (how much CPU time each task has consumed). The data is provided as both an absolute and a percentage value. The resolution of the absolute value is dependent on the frequency of the run time stats clock provided by the application. vTaskGetRunTimeStats() is a utility function provided for convenience only. It is not considered part of the kernel. See vTaskList() for a utility function that generates information on the state of each task.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|
Latest News
NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS. Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019 Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed. View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS. Careers
FreeRTOS and other embedded software careers at AWS. FreeRTOS Partners
|