summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/timerstub.c
blob: bba07bcf7c7d9cb95f69c71d2aa1f569f1509252 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* 
 *  This file implements a stub benchmark timer that is sufficient to
 *  satisfy linking the RTEMS Benchmarks.
 *
 *  COPYRIGHT (c) 1989-2001.
 *  On-Line Applications Research Corporation (OAR).
 *
 *
 *  $Id$
 */

#include <bsp.h>

rtems_boolean Timer_driver_Find_average_overhead;

void Timer_initialize()
{
}
int Read_timer()
{
  if (Timer_driver_Find_average_overhead)
    return 1;
  return 0;
}

rtems_status_code Empty_function( void )
{
  return RTEMS_SUCCESSFUL;
}

void Set_find_average_overhead(
  rtems_boolean find_flag
)
{
  Timer_driver_Find_average_overhead = find_flag;
}