RTEMS 5.4-rc2
Loading...
Searching...
No Matches
bsd.h
Go to the documentation of this file.
1
9/*
10 * Copyright (c) 2015 embedded brains GmbH. All rights reserved.
11 *
12 * embedded brains GmbH
13 * Dornierstr. 4
14 * 82178 Puchheim
15 * Germany
16 * <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#ifndef _RTEMS_BSD_H
24#define _RTEMS_BSD_H
25
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
44RTEMS_INLINE_ROUTINE void rtems_bsd_bintime( struct bintime *bt )
45{
46 _Timecounter_Bintime( bt );
47}
48
52RTEMS_INLINE_ROUTINE void rtems_bsd_nanotime( struct timespec *ts )
53{
54 _Timecounter_Nanotime( ts );
55}
56
60RTEMS_INLINE_ROUTINE void rtems_bsd_microtime( struct timeval *tv )
61{
62 _Timecounter_Microtime( tv );
63}
64
68RTEMS_INLINE_ROUTINE void rtems_bsd_binuptime( struct bintime *bt )
69{
70 _Timecounter_Binuptime( bt );
71}
72
76RTEMS_INLINE_ROUTINE void rtems_bsd_nanouptime( struct timespec *ts )
77{
78 _Timecounter_Nanouptime( ts );
79}
80
85{
86 _Timecounter_Microuptime( tv );
87}
88
93{
94 _Timecounter_Getbintime( bt );
95}
96
101{
102 _Timecounter_Getnanotime( ts );
103}
104
109{
110 _Timecounter_Getmicrotime( tv );
111}
112
117{
118 _Timecounter_Getbinuptime( bt );
119}
120
125{
126 _Timecounter_Getnanouptime( ts );
127}
128
133{
134 _Timecounter_Getmicrouptime( tv );
135}
136
139#ifdef __cplusplus
140}
141#endif /* __cplusplus */
142
143#endif /* _RTEMS_BSD_H */
Basic Definitions.
RTEMS_INLINE_ROUTINE void rtems_bsd_getbintime(struct bintime *bt)
Definition: bsd.h:92
RTEMS_INLINE_ROUTINE void rtems_bsd_binuptime(struct bintime *bt)
Definition: bsd.h:68
RTEMS_INLINE_ROUTINE void rtems_bsd_getnanotime(struct timespec *ts)
Definition: bsd.h:100
RTEMS_INLINE_ROUTINE void rtems_bsd_nanotime(struct timespec *ts)
Definition: bsd.h:52
RTEMS_INLINE_ROUTINE void rtems_bsd_bintime(struct bintime *bt)
Definition: bsd.h:44
RTEMS_INLINE_ROUTINE void rtems_bsd_getnanouptime(struct timespec *ts)
Definition: bsd.h:124
RTEMS_INLINE_ROUTINE void rtems_bsd_microtime(struct timeval *tv)
Definition: bsd.h:60
RTEMS_INLINE_ROUTINE void rtems_bsd_microuptime(struct timeval *tv)
Definition: bsd.h:84
RTEMS_INLINE_ROUTINE void rtems_bsd_getbinuptime(struct bintime *bt)
Definition: bsd.h:116
RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrouptime(struct timeval *tv)
Definition: bsd.h:132
RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrotime(struct timeval *tv)
Definition: bsd.h:108
RTEMS_INLINE_ROUTINE void rtems_bsd_nanouptime(struct timespec *ts)
Definition: bsd.h:76
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
Timecounter API.