Myriota UltraLite SDK 2.4.0
Loading...
Searching...
No Matches
Delay Delays

Timing functions for delays and sleep modes. More...

Functions

MYRIOTA_USER_API void Delay (uint32_t mSec)
 Delays execution for a specified number of milliseconds.
 
MYRIOTA_USER_API void MicroSecondDelay (uint32_t uSec)
 Delays execution for a specified number of microseconds.
 
MYRIOTA_USER_API void Sleep (uint32_t Sec)
 Put the system in lower power mode for a specified number of seconds.
 

Detailed Description

Timing functions for delays and sleep modes.

Function Documentation

◆ Delay()

MYRIOTA_USER_API void Delay ( uint32_t  mSec)

Delays execution for a specified number of milliseconds.

This is a blocking operation and should be used sparingly in the scheduler context.

Parameters
mSecDuration to delay in milliseconds.
Note
Use Delay() only for sub-second timing or hardware setup delays.
See also
Sleep()

◆ MicroSecondDelay()

MYRIOTA_USER_API void MicroSecondDelay ( uint32_t  uSec)

Delays execution for a specified number of microseconds.

This is a blocking operation and should be used sparingly in the scheduler context.

Parameters
uSecDuration to delay in microseconds.
Note
Use MicroSecondDelay() only for sub-second timing or hardware setup delays.
See also
Sleep()

◆ Sleep()

MYRIOTA_USER_API void Sleep ( uint32_t  Sec)

Put the system in lower power mode for a specified number of seconds.

The calling job won't be interrupted by other jobs except for events while sleeping.

Parameters
SecDuration to sleep in seconds.