nRF5 SDK v16.0.0
Functions
POSIX operating system API

POSIX standard functions. More...

Functions

unsigned int sleep (unsigned int seconds)
 POSIX sleep function. More...
 
unsigned int usleep (unsigned int useconds)
 POSIX usleep function. More...
 

Detailed Description

POSIX standard functions.

Function Documentation

unsigned int sleep ( unsigned int  seconds)

POSIX sleep function.

Note
Uses busy looping nrf_delay.
Parameters
[in]secondsThe number of seconds to sleep.
Returns
The number of seconds slept.
unsigned int usleep ( unsigned int  useconds)

POSIX usleep function.

Note
Uses busy looping nrf_delay.
Parameters
[in]usecondsThe number of microseconds to sleep.
Returns
The number of microseconds slept.

Documentation feedback | Developer Zone | Subscribe | Updated