4.104.114.84.95
Last change
on this file since 9977ac6 was
9977ac6,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:51:59
|
2003-09-04 Joel Sherrill <joel@…>
- clock/ckinit.c, console/console.c, include/bsp.h, include/coverhd.h,
shmsupp/addrconv.c, shmsupp/getcfg.c, shmsupp/lock.c,
shmsupp/mpisr.c, startup/bspclean.c, startup/bspstart.c,
startup/linkcmds, timer/timer.c, timer/timerisr.S: URL for license
changed.
|
-
Property mode set to
100644
|
File size:
1018 bytes
|
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-1999. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.com/license/LICENSE. |
---|
17 | * |
---|
18 | * $Id$ |
---|
19 | */ |
---|
20 | |
---|
21 | #include "asm.h" |
---|
22 | |
---|
23 | BEGIN_CODE |
---|
24 | |
---|
25 | .set CT1_CMD_STATUS, 0xfffb000a | port A |
---|
26 | .set RELOAD, 0x24 | clr IP & IUS,allow countdown |
---|
27 | |
---|
28 | PUBLIC (timerisr) |
---|
29 | SYM (timerisr): |
---|
30 | movl a0,a7@- | save a0 |
---|
31 | movl #CT1_CMD_STATUS,a0 | a0 = addr of cmd status reg |
---|
32 | movb #RELOAD,a0@ | reload countdown |
---|
33 | addql #1, SYM (Ttimer_val) | increment timer value |
---|
34 | movl a7@+,a0 | save a0 |
---|
35 | rte |
---|
36 | |
---|
37 | END_CODE |
---|
38 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.