FreeRTOS: POSIX
Return to main page ↑
unistd.h File Reference

Standard symbolic constants and types. More...

Go to the source code of this file.

Functions

unsigned sleep (unsigned seconds)
 Suspend execution for an interval of time. More...
 
int usleep (useconds_t usec)
 Suspend execution for microsecond intervals. More...
 

Detailed Description

Function Documentation

◆ sleep()

unsigned sleep ( unsigned  seconds)

Suspend execution for an interval of time.

http://pubs.opengroup.org/onlinepubs/9699919799/functions/sleep.html

Parameters
[in]secondsThe number of seconds to suspend execution.
Return values
0- Upon successful completion.
Note
Return value of a positive number is not yet supported.

◆ usleep()

int usleep ( useconds_t  usec)

Suspend execution for microsecond intervals.

This is a useful, non-POSIX function.

Parameters
[in]usecThe number of microseconds to suspend execution.
Return values
0- Upon successful completion.