The os_suspend function suspends the OS task scheduler. The
function calculates the time, for how long the system is allowed to
power-down, and locks the task scheduler. When the function returns,
the task switches are disabled. For the normal RTX operation, after
calling os_suspend, you must call the os_resume
function to re-enable the OS task scheduler.
The os_suspend function is in the RL-RTX library. The
prototype is defined in rtl.h.
Note
This function is used in Low Power RTX
applications.
You can call this function from the idle task only.
When the system is in power-down, the system tick timer is not
running.
Return Value
The os_suspend function returns the number of ticks, for
how long the system can sleep or power-down.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.