libmetal
lib
sleep.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
/*
8
* @file sleep.h
9
* @brief Sleep primitives for libmetal.
10
*/
11
12
#ifndef __METAL_SLEEP__H__
13
#define __METAL_SLEEP__H__
14
15
#include <metal/system/@PROJECT_SYSTEM@/sleep.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
32
static
inline
int
metal_sleep_usec
(
unsigned
int
usec)
33
{
34
return
__metal_sleep_usec
(usec);
35
}
36
39
#ifdef __cplusplus
40
}
41
#endif
42
43
#endif
/* __METAL_SLEEP__H__ */
44
metal_sleep_usec
static int metal_sleep_usec(unsigned int usec)
delay in microseconds delay the next execution in the calling thread fo usec microseconds.
Definition:
sleep.h:32
__metal_sleep_usec
static int __metal_sleep_usec(unsigned int usec)
Definition:
sleep.h:26
Generated on Sun Oct 14 2018 10:40:48 for libmetal by
1.8.14