FreeRTOS: POSIX
Return to main page ↑
FreeRTOS_POSIX_unistd.c File Reference

Implementation of functions in unistd.h. More...

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

Implementation of functions in unistd.h.

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.