cancel
Showing results for 
Search instead for 
Did you mean: 

Is it safe to call ulTaskGetIdleRunTimeCounter() from vApplicationTickHook()?

MFolk.1
Senior

This is a FreeRTOS related question. I am using FreeRTOS on the STM32L4S9AII6 MCU.

How do I get access to the source code for the ulTaskGetIdleRunTimeCounter() function? All the IDE allows me to see when I attempt to open the declaration (F3) is this pseudo declaration found in task.h:

uint32_t ulTaskGetIdleRunTimeCounter( void ) PRIVILEGED_FUNCTION;

What a self-absorbed function. This must be proprietary information I guess. I need to know if this function does any blocking or disabling of interrupts. Is there a straightforward way to gather this information?

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

FreeRTOS is completely open source and you can view all it freely in the ST Cube "repository" downloaded on your computer and online..

> Is it safe to call ulTaskGetIdleRunTimeCounter() from vApplicationTickHook()?

It looks like so.

View solution in original post

1 REPLY 1
Pavel A.
Evangelist III

FreeRTOS is completely open source and you can view all it freely in the ST Cube "repository" downloaded on your computer and online..

> Is it safe to call ulTaskGetIdleRunTimeCounter() from vApplicationTickHook()?

It looks like so.