4.104.114.84.95
Last change
on this file since 674c900 was
98e4ebf5,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54
|
Fixed typo in the pointer to the license terms.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /* timer_isr() |
---|
2 | * |
---|
3 | * This routine provides the ISR for the Z8036 timer on the MVME136 |
---|
4 | * board. The timer is set up to generate an interrupt at maximum |
---|
5 | * intervals. |
---|
6 | * |
---|
7 | * Input parameters: NONE |
---|
8 | * |
---|
9 | * Output parameters: NONE |
---|
10 | * |
---|
11 | * COPYRIGHT (c) 1989-1997. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * Copyright assigned to U.S. Government, 1994. |
---|
14 | * |
---|
15 | * The license and distribution terms for this file may be |
---|
16 | * found in the file LICENSE in this distribution or at |
---|
17 | * http://www.OARcorp.com/rtems/license.html. |
---|
18 | * |
---|
19 | * Modifications of respective RTEMS file: COPYRIGHT (c) 1994. |
---|
20 | * EISCAT Scientific Association. M.Savitski |
---|
21 | * |
---|
22 | * This material is a part of the MVME162 Board Support Package |
---|
23 | * for the RTEMS executive. Its licensing policies are those of the |
---|
24 | * RTEMS above. |
---|
25 | * |
---|
26 | * $Id$ |
---|
27 | */ |
---|
28 | |
---|
29 | #include "asm.h" |
---|
30 | |
---|
31 | BEGIN_CODE |
---|
32 | |
---|
33 | .set INTR_CLEAR_REG, 0xfff40074 | interrupt clear register |
---|
34 | .set RELOAD, 0x01000000 | clear tick 1 interrupt |
---|
35 | |
---|
36 | PUBLIC (Ttimer_val) |
---|
37 | PUBLIC (timerisr) |
---|
38 | SYM (timerisr): |
---|
39 | move.l a0, -(a7) | save a0 |
---|
40 | movea.l #INTR_CLEAR_REG, a0 | a0 = addr of cmd status reg |
---|
41 | ori.l #RELOAD, (a0) | reload countdown |
---|
42 | addq.l #1, SYM (Ttimer_val) | increment timer value |
---|
43 | move.l (a7)+, a0 | restore a0 |
---|
44 | rte |
---|
45 | |
---|
46 | END_CODE |
---|
47 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.