RTEMS: cpukit/include/rtems/bsd.h Source File

| 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
26#include <rtems/score/timecounter.h>
27#include <rtems/score/basedefs.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
44 RTEMS_INLINE_ROUTINE void rtems_bsd_bintime( struct bintime *bt )
45{
46 _Timecounter_Bintime( bt );
47}
48
52 RTEMS_INLINE_ROUTINE void rtems_bsd_nanotime( struct timespec *ts )
53{
54 _Timecounter_Nanotime( ts );
55}
56
60 RTEMS_INLINE_ROUTINE void rtems_bsd_microtime( struct timeval *tv )
61{
62 _Timecounter_Microtime( tv );
63}
64
68 RTEMS_INLINE_ROUTINE void rtems_bsd_binuptime( struct bintime *bt )
69{
70 _Timecounter_Binuptime( bt );
71}
72
76 RTEMS_INLINE_ROUTINE void rtems_bsd_nanouptime( struct timespec *ts )
77{
78 _Timecounter_Nanouptime( ts );
79}
80
84 RTEMS_INLINE_ROUTINE void rtems_bsd_microuptime( struct timeval *tv )
85{
86 _Timecounter_Microuptime( tv );
87}
88
92 RTEMS_INLINE_ROUTINE void rtems_bsd_getbintime( struct bintime *bt )
93{
94 _Timecounter_Getbintime( bt );
95}
96
100 RTEMS_INLINE_ROUTINE void rtems_bsd_getnanotime( struct timespec *ts )
101{
102 _Timecounter_Getnanotime( ts );
103}
104
108 RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrotime( struct timeval *tv )
109{
110 _Timecounter_Getmicrotime( tv );
111}
112
116 RTEMS_INLINE_ROUTINE void rtems_bsd_getbinuptime( struct bintime *bt )
117{
118 _Timecounter_Getbinuptime( bt );
119}
120
124 RTEMS_INLINE_ROUTINE void rtems_bsd_getnanouptime( struct timespec *ts )
125{
126 _Timecounter_Getnanouptime( ts );
127}
128
132 RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrouptime( struct timeval *tv )
133{
134 _Timecounter_Getmicrouptime( tv );
135}
136
139#ifdef __cplusplus
140}
141#endif /* __cplusplus */
142
143#endif /* _RTEMS_BSD_H */
basedefs.h
Basic Definitions.
rtems_bsd_getbintime
RTEMS_INLINE_ROUTINE void rtems_bsd_getbintime(struct bintime *bt)
Definition: bsd.h:92
rtems_bsd_binuptime
RTEMS_INLINE_ROUTINE void rtems_bsd_binuptime(struct bintime *bt)
Definition: bsd.h:68
rtems_bsd_getnanotime
RTEMS_INLINE_ROUTINE void rtems_bsd_getnanotime(struct timespec *ts)
Definition: bsd.h:100
rtems_bsd_nanotime
RTEMS_INLINE_ROUTINE void rtems_bsd_nanotime(struct timespec *ts)
Definition: bsd.h:52
rtems_bsd_bintime
RTEMS_INLINE_ROUTINE void rtems_bsd_bintime(struct bintime *bt)
Definition: bsd.h:44
rtems_bsd_getnanouptime
RTEMS_INLINE_ROUTINE void rtems_bsd_getnanouptime(struct timespec *ts)
Definition: bsd.h:124
rtems_bsd_microtime
RTEMS_INLINE_ROUTINE void rtems_bsd_microtime(struct timeval *tv)
Definition: bsd.h:60
rtems_bsd_microuptime
RTEMS_INLINE_ROUTINE void rtems_bsd_microuptime(struct timeval *tv)
Definition: bsd.h:84
rtems_bsd_getbinuptime
RTEMS_INLINE_ROUTINE void rtems_bsd_getbinuptime(struct bintime *bt)
Definition: bsd.h:116
rtems_bsd_getmicrouptime
RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrouptime(struct timeval *tv)
Definition: bsd.h:132
rtems_bsd_getmicrotime
RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrotime(struct timeval *tv)
Definition: bsd.h:108
rtems_bsd_nanouptime
RTEMS_INLINE_ROUTINE void rtems_bsd_nanouptime(struct timespec *ts)
Definition: bsd.h:76
RTEMS_INLINE_ROUTINE
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
timecounter.h
Timecounter API.