mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 15:30:17 +00:00
2001-10-17 Joel Sherrill <joel@OARcorp.com>
* timerstub.c: New stub file for BSPs that don't have timer hardware.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2001-10-17 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* timerstub.c: New stub file for BSPs that don't have timer hardware.
|
||||
|
||||
2001-10-12 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* console-polled.c, console.c: Fixed typo.
|
||||
|
||||
36
c/src/lib/libbsp/shared/timerstub.c
Normal file
36
c/src/lib/libbsp/shared/timerstub.c
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user