source: rtems/c/src/lib/libbsp/m68k/dmv152/timer/timerisr.s @ 497428a2

4.104.114.84.95
Last change on this file since 497428a2 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*  timer_isr()
2 *
3 *  This routine provides the ISR for the Z8536 timer on the DMV152
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, 1990, 1991, 1992, 1993, 1994.
12 *  On-Line Applications Research Corporation (OAR).
13 *  All rights assigned to U.S. Government, 1994.
14 *
15 *  This material may be reproduced by or for the U.S. Government pursuant
16 *  to the copyright license under the clause at DFARS 252.227-7013.  This
17 *  notice must appear in all copies of this file and its derivatives.
18 *
19 *  $Id$
20 */
21
22#include "asm.h"
23
24BEGIN_CODE
25
26.set TIMER,           0x0c000007         | port A
27.set CT1_CMD_STATUS,  0x0a               | command status register
28.set RELOAD,          0x26               | clr IP & IUS,allow countdown
29
30        PUBLIC(timerisr)
31SYM (timerisr):
32        movb    #CT1_CMD_STATUS,TIMER    | set pointer to cmd status reg
33        movb    #RELOAD,TIMER            | reload countdown
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.