VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
Examples
File List
Globals
source
shell
sys
linux
include
linux
delay.h
Go to the documentation of this file.
1
#ifndef __VSF_LINUX_DELAY_H__
2
#define __VSF_LINUX_DELAY_H__
3
4
#include "
kernel/vsf_kernel.h
"
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
static
inline
void
msleep(
unsigned
int
msecs)
11
{
12
vsf_thread_delay_ms
(msecs);
13
}
14
15
static
inline
void
usleep_range(
unsigned
long
min
,
unsigned
long
max
)
16
{
17
vsf_thread_delay_us
(
min
);
18
}
19
20
#ifdef __cplusplus
21
}
22
#endif
23
24
#endif
min
#define min(x, y)
Definition
minmax.h:11
max
#define max(x, y)
Definition
minmax.h:12
vsf_kernel.h
vsf_thread_delay_us
#define vsf_thread_delay_us(__us)
Delay (sleep) the current thread for the given microseconds.
Definition
vsf_thread.h:833
vsf_thread_delay_ms
#define vsf_thread_delay_ms(__ms)
Delay (sleep) the current thread for the given milliseconds.
Definition
vsf_thread.h:816
Generated from commit:
vsfteam/vsf@a5104db