Skip to main content
Explorer
July 8, 2022
Solved

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

  • July 8, 2022
  • 1 reply
  • 1083 views

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.
    Best answer by Pavel A.

    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.Answer
    Super User
    July 8, 2022

    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.