RTEMS 6.1-rc4
Loading...
Searching...
No Matches
btimer.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
9/*
10 * COPYRIGHT (c) 2011 Ralf Corsépius Ulm/Germany
11 *
12 * Derived from libcsupport/include/timerdrv.h:
13 *
14 * COPYRIGHT (c) 1989-1999.
15 * On-Line Applications Research Corporation (OAR).
16 *
17 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions
19 * are met:
20 * 1. Redistributions of source code must retain the above copyright
21 * notice, this list of conditions and the following disclaimer.
22 * 2. Redistributions in binary form must reproduce the above copyright
23 * notice, this list of conditions and the following disclaimer in the
24 * documentation and/or other materials provided with the distribution.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39/*
40 * All the functions declared as extern after this comment
41 * MUST be implemented in each BSP.
42 */
43
44#ifndef _RTEMS_BTIMER_H
45#define _RTEMS_BTIMER_H
46
47#include <stdbool.h>
48#include <stdint.h>
49#include <rtems/rtems/status.h>
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
80typedef uint32_t benchmark_timer_t;
81
88extern void benchmark_timer_initialize( void );
89
101
108
120 bool find_flag
121);
122
125#ifdef __cplusplus
126}
127#endif
128
129#endif
rtems_status_code benchmark_timer_empty_function(void)
Benchmark Timer Empty Function.
void benchmark_timer_initialize(void)
Initialize the Benchmark Timer.
Definition: btimer.c:31
benchmark_timer_t benchmark_timer_read(void)
Read the Benchmark Timer.
Definition: btimer.c:60
uint32_t benchmark_timer_t
This type is used to return a Benchmark Timer value.
Definition: btimer.h:80
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
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
This header file provides the status codes of Classic API directives and support functions.