Skip to main content
MFolk.1
Senior
Jul 8, 2022 3:35 PM UTC
Solved

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

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?

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer
Jul 8, 2022 7:20 PM UTC

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.

1 reply

Pavel A.
Pavel A.Best answer
Jul 8, 2022 7:20 PM UTC

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.