Appearance
Power Saving
Power saving functions.
Functions Overview
| Name | |
|---|---|
| unsigned | osKernelSleep(unsigned ticks) enters the kernel into sleep mode which either ends after 'ticks' or if an interrupt occurs \detail the function just puts the kernel to sleep and susspends all platform activity like TCP/IP. to save as much power as possible the user is responsible for : |
Function Details
function osKernelSleep
cpp
unsigned osKernelSleep(
unsigned ticks
)enters the kernel into sleep mode which either ends after 'ticks' or if an interrupt occurs \detail the function just puts the kernel to sleep and susspends all platform activity like TCP/IP. to save as much power as possible the user is responsible for :
- closing any open device handles before calling osKernelSleep
- make sure any other threads are suspended indefinitely as timeouts (osDelay, waiting for semaphore or mutex timeouts) will be taken into account by the sleep manager and shorten the actual sleep period accordingly. the number of ticks that the kernel slept.