4.104.114.84.95
Last change
on this file since 9b5c258 was
0f52b7f,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/17/01 at 20:38:42
|
2001-10-17 Joel Sherrill <joel@…>
- timerstub.c: New stub file for BSPs that don't have timer hardware.
|
-
Property mode set to
100644
|
File size:
595 bytes
|
Line | |
---|
1 | /* |
---|
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 | * $Id$ |
---|
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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.