source: rtems/c/src/lib/libbsp/no_cpu/no_bsp/timer/timerisr.c @ 8fbe2e6

4.11
Last change on this file since 8fbe2e6 was 8fbe2e6, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 4, 2014 at 1:59:49 PM

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: 1.1 KB
Line 
1/**
2 *  @file
3 *
4 *  If required this ISR is used to bump a count of interval "overflow"
5 *  interrupts which have occurred since the timer was started.  The
6 *  number of overflows is taken into account in the benchmark_timer_read()
7 *  routine if necessary.
8 *
9 *  To reduce overhead this is best to be the "rawest" hardware interupt
10 *  handler you can write.  This should be the only interrupt which can
11 *  occur during the measured time period.
12 *
13 *  @note This file is USUALLY in assembly and is LEAN AND MEAN.
14 *        Any code in this isr is pure overhead which can perturb
15 *        the accuracy of the Timing Test Suite.
16 */
17
18/*
19 *  COPYRIGHT (c) 1989-1999.
20 *  On-Line Applications Research Corporation (OAR).
21 *
22 *  The license and distribution terms for this file may be
23 *  found in the file LICENSE in this distribution or at
24 *  http://www.rtems.org/license/LICENSE.
25 */
26
27#include <rtems.h>
28#include <rtems/btimer.h>
29
30extern uint32_t         _Timer_interrupts;
31
32void timerisr( void )
33{
34  /*
35   *  _Timer_interrupts += TIMER_BETWEEN_OVERFLOWS  (usually in microseconds)
36   *  return from interrupt
37   */
38}
Note: See TracBrowser for help on using the repository browser.