libmetal  latest
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 
33 static inline int metal_sleep_usec(unsigned int usec)
34 {
35  return __metal_sleep_usec(usec);
36 }
37 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* __METAL_SLEEP__H__ */
45 
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:33
static int __metal_sleep_usec(unsigned int usec)
Definition: sleep.h:26