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:
1.3 KB
|
Rev | Line | |
---|
[8fbe2e6] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * @brief Handle MCF5206 TIMER2 interrupts |
---|
[00717a3] | 4 | * |
---|
| 5 | * All code in this routine is pure overhead which can perturb the |
---|
| 6 | * accuracy of RTEMS' timing test suite. |
---|
| 7 | * |
---|
[a5cd2271] | 8 | * See also: benchmark_timer_read() |
---|
[00717a3] | 9 | * |
---|
| 10 | * To reduce overhead this is best to be the "rawest" hardware interupt |
---|
| 11 | * handler you can write. This should be the only interrupt which can |
---|
| 12 | * occur during the measured time period. |
---|
| 13 | * |
---|
| 14 | * An external counter, Timer_interrupts, is incremented. |
---|
[8fbe2e6] | 15 | */ |
---|
| 16 | |
---|
| 17 | /* |
---|
[00717a3] | 18 | * Copyright (C) 2000 OKTET Ltd., St.-Petersburg, Russia |
---|
| 19 | * Author: Victor V. Vengerov <vvv@oktet.ru> |
---|
| 20 | * |
---|
| 21 | * This file based on work: |
---|
| 22 | * Author: |
---|
| 23 | * David Fiddes, D.J@fiddes.surfaid.org |
---|
| 24 | * http://www.calm.hw.ac.uk/davidf/coldfire/ |
---|
| 25 | * |
---|
| 26 | * COPYRIGHT (c) 1989-1998. |
---|
| 27 | * On-Line Applications Research Corporation (OAR). |
---|
| 28 | * |
---|
| 29 | * The license and distribution terms for this file may be |
---|
| 30 | * found in the file LICENSE in this distribution or at |
---|
[c499856] | 31 | * http://www.rtems.org/license/LICENSE. |
---|
[00717a3] | 32 | */ |
---|
| 33 | |
---|
[fbb8e6a] | 34 | #include <rtems/asm.h> |
---|
[8fbe2e6] | 35 | #include <bsp.h> |
---|
[00717a3] | 36 | #include "mcf5206/mcf5206e.h" |
---|
| 37 | |
---|
| 38 | BEGIN_CODE |
---|
| 39 | PUBLIC(timerisr) |
---|
| 40 | SYM(timerisr): |
---|
| 41 | move.l a0, a7@- |
---|
| 42 | move.l #MCF5206E_TER(BSP_MEM_ADDR_IMM, 2), a0 |
---|
| 43 | move.b # (MCF5206E_TER_REF + MCF5206E_TER_CAP), (a0) |
---|
| 44 | addq.l #1,SYM(Timer_interrupts) | increment timer value |
---|
| 45 | move.l a7@+, a0 |
---|
| 46 | rte |
---|
| 47 | END_CODE |
---|
| 48 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.