Hi
I do not want to suspend the scheduler of RTX5 to get the available sleep time.
I only want to see a preliminary report for the tasks' sleep time status.
In our previous operating system, we had a function for that, it was something like 'prvGetExpectedIdleTime'.
Is something like that available?
It sounds like you are talking about the function osKernelSuspend()
https://arm-software.github.io/CMSIS_5/RTOS2/html/group__CMSIS__RTOS__KernelCtrl.html#gae26683e1606ec633354a2876c68f0c1f
As a workaround look at the sample code in the above link. You could save the Sleep value to a table, to reference later.
When this function is called, the device enters a tickless operation. This means the at a hardware level, the device is put to sleep, (or deepsleep, if configured). See See section "B1.5.17 Power management" of the ARMv7-M Architecture Reference Manualhttps://developer.arm.com/documentation/ddi0403/ee/
It is sometimes not worthwhile entering sleep if it's less than some small value of ticks/ms.
To suspend then resume the scheduler on each iteration of the idle task seems wrong.
Therefore, I am looking for a preliminary test of the expected idle time without suspending
the scheduler.