4.104.114.84.95
Line | |
---|
1 | /* timer_isr() |
---|
2 | * |
---|
3 | * This routine provides the ISR for the MC68230 timer on the Motorola |
---|
4 | * IDP board. The timer is set up to generate an interrupt at maximum |
---|
5 | * intervals. |
---|
6 | * |
---|
7 | * Code modified by Doug McBride, Colorado Space Grant College |
---|
8 | * countdown should be loaded automatically |
---|
9 | * |
---|
10 | * Input parameters: NONE |
---|
11 | * |
---|
12 | * Output parameters: NONE |
---|
13 | * |
---|
14 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
15 | * On-Line Applications Research Corporation (OAR). |
---|
16 | * All rights assigned to U.S. Government, 1994. |
---|
17 | * |
---|
18 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
19 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
20 | * notice must appear in all copies of this file and its derivatives. |
---|
21 | * |
---|
22 | * $Id$ |
---|
23 | */ |
---|
24 | |
---|
25 | #include "asm.h" |
---|
26 | |
---|
27 | BEGIN_CODE |
---|
28 | |
---|
29 | .set TSR, 0x00c0106B | base address of PIT register "TSR" |
---|
30 | |
---|
31 | PUBLIC (timerisr) |
---|
32 | SYM (timerisr): |
---|
33 | movb #1,TSR | acknowledge interrupt |
---|
34 | addql #1, SYM (Ttimer_val) | increment timer value |
---|
35 | rte |
---|
36 | |
---|
37 | END_CODE |
---|
38 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.