RTEMS  5.0.0
btimer.h
Go to the documentation of this file.
1 
7 /*
8  * COPYRIGHT (c) 2011 Ralf Corsépius Ulm/Germany
9  *
10  * Derived from libcsupport/include/timerdrv.h:
11  *
12  * COPYRIGHT (c) 1989-1999.
13  * On-Line Applications Research Corporation (OAR).
14  *
15  * The license and distribution terms for this file may be
16  * found in the file LICENSE in this distribution or at
17  * http://www.rtems.org/license/LICENSE.
18  */
19 
20 /*
21  * All the functions declared as extern after this comment
22  * MUST be implemented in each BSP.
23  */
24 
25 #ifndef _RTEMS_BTIMER_H
26 #define _RTEMS_BTIMER_H
27 
28 #include <stdbool.h>
29 #include <stdint.h>
30 #include <rtems/rtems/status.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
59 typedef uint32_t benchmark_timer_t;
60 
67 extern void benchmark_timer_initialize( void );
68 
79 extern benchmark_timer_t benchmark_timer_read( void );
80 
87 
99  bool find_flag
100 );
101 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif
uint32_t benchmark_timer_t
This type is used to return a Benchmark Timer value.
Definition: btimer.h:59
rtems_status_code
Classic API Status.
Definition: status.h:43
void benchmark_timer_initialize(void)
Initialize the Benchmark Timer.
Definition: btimer.c:31
void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
Disable Average Overhead Removal from the Benchmark Timer.
Definition: btimer.c:89
rtems_status_code benchmark_timer_empty_function(void)
Benchmark Timer Empty Function.
benchmark_timer_t benchmark_timer_read(void)
Read the Benchmark Timer.
Definition: btimer.c:60