Ignore:
Timestamp:
Sep 4, 2014, 1:59:49 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
6cd2074
Parents:
c080c343
git-author:
Joel Sherrill <joel.sherrill@…> (09/04/14 13:59:49)
git-committer:
Joel Sherrill <joel.sherrill@…> (09/16/14 21:09:12)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/sh7750/timer/timer.c

    rc080c343 r8fbe2e6  
     1/**
     2 *  @file
     3 *  @brief Timer driver for the Hitachi SH 7750
     4 */
     5
    16/*
    2  *  timer driver for the Hitachi SH 7750
    3  *
    4  *  This file manages the benchmark timer used by the RTEMS Timing Test
    5  *  Suite.  Each measured time period is demarcated by calls to
    6  *  benchmark_timer_initialize() and benchmark_timer_read().  benchmark_timer_read() usually returns
    7  *  the number of microseconds since benchmark_timer_initialize() exitted.
    8  *
    9  *  NOTE: It is important that the timer start/stop overhead be
    10  *        determined when porting or modifying this code.
    11  *
    127 *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
    138 *  Author: Victor V. Vengerov <vvv@oktet.ru>
     
    2217
    2318#include <rtems.h>
     19#include <rtems/btimer.h>
    2420
    2521#include <rtems/score/sh_io.h>
     
    199195 *     number of microseconds since timer has been started
    200196 */
    201 int
     197benchmark_timer_t
    202198benchmark_timer_read(void)
    203199{
Note: See TracChangeset for help on using the changeset viewer.