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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [shared/] [timerstub.c] - Rev 1765

Compare with Previous | Blame | View Log

/* 
 *  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).
 *
 *
 *  timerstub.c,v 1.1 2001/10/17 20:38:42 joel Exp
 */
 
#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;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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