source: rtems/c/src/lib/libbsp/m68k/idp/timer/timerisr.S @ 6693a68

4.104.114.84.95
Last change on this file since 6693a68 was 0162910, checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/98 at 23:15:38

Patch from Ralf Corsepius <corsepiu@…> to rename all
.s files to .S in conformance with GNU conventions. This is a
minor step along the way to supporting automake.

  • Property mode set to 100644
File size: 968 bytes
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-1998.
15 *  On-Line Applications Research Corporation (OAR).
16 *  Copyright assigned to U.S. Government, 1994.
17 *
18 *  The license and distribution terms for this file may be
19 *  found in the file LICENSE in this distribution or at
20 *  http://www.OARcorp.com/rtems/license.html.
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.