source: rtems/c/src/lib/libbsp/shared/timerstub.c @ 8fbe2e6

4.115
Last change on this file since 8fbe2e6 was 8fbe2e6, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/14 at 13:59:49

Use correct prototype of benchmark_timer_read()

This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.

I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.

  • Property mode set to 100644
File size: 593 bytes
RevLine 
[6128a4a]1/*
[0f52b7f]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#include <bsp.h>
[c8d4c61]10#include <rtems/btimer.h>
[0f52b7f]11
[14d7c5a]12bool benchmark_timer_find_average_overhead;
[0f52b7f]13
[0f7b6467]14void benchmark_timer_initialize(void)
[0f52b7f]15{
16}
[3fe64cb5]17
[8fbe2e6]18benchmark_timer_t benchmark_timer_read(void)
[0f52b7f]19{
[0f7b6467]20  if (benchmark_timer_find_average_overhead)
[0f52b7f]21    return 1;
22  return 0;
23}
24
[0f7b6467]25void benchmark_timer_disable_subtracting_average_overhead(
[14d7c5a]26  bool find_flag
[0f52b7f]27)
28{
[0f7b6467]29  benchmark_timer_find_average_overhead = find_flag;
[0f52b7f]30}
Note: See TracBrowser for help on using the repository browser.