source: rtems/c/src/lib/libbsp/m68k/idp/timer/timerisr.s @ 88d594a

4.104.114.84.95
Last change on this file since 88d594a was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on May 11, 1995 at 5:39:37 PM

Initial revision

  • Property mode set to 100644
File size: 1.0 KB
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
27BEGIN_CODE
28
29.set TSR,        0x00c0106B              | base address of PIT register "TSR"
30
31        PUBLIC (timerisr)
32SYM (timerisr):
33        movb    #1,TSR                                         | acknowledge interrupt
34        addql   #1, SYM (Ttimer_val)   | increment timer value
35        rte
36
37END_CODE
38END
Note: See TracBrowser for help on using the repository browser.