OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [shared/] [timerstub.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  This file implements a stub benchmark timer that is sufficient to
3
 *  satisfy linking the RTEMS Benchmarks.
4
 *
5
 *  COPYRIGHT (c) 1989-2001.
6
 *  On-Line Applications Research Corporation (OAR).
7
 *
8
 *
9
 *  timerstub.c,v 1.1 2001/10/17 20:38:42 joel Exp
10
 */
11
 
12
#include <bsp.h>
13
 
14
rtems_boolean Timer_driver_Find_average_overhead;
15
 
16
void Timer_initialize()
17
{
18
}
19
int Read_timer()
20
{
21
  if (Timer_driver_Find_average_overhead)
22
    return 1;
23
  return 0;
24
}
25
 
26
rtems_status_code Empty_function( void )
27
{
28
  return RTEMS_SUCCESSFUL;
29
}
30
 
31
void Set_find_average_overhead(
32
  rtems_boolean find_flag
33
)
34
{
35
  Timer_driver_Find_average_overhead = find_flag;
36
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.